Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vNImy-00GZJd-1f for pgsql-general@arkaria.postgresql.org; Sun, 23 Nov 2025 22:42:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vNImv-00FpfU-06 for pgsql-general@arkaria.postgresql.org; Sun, 23 Nov 2025 22:42:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vNImu-00FpfL-0L for pgsql-general@lists.postgresql.org; Sun, 23 Nov 2025 22:42:33 +0000 Received: from mail-australiaeastazlp170120004.outbound.protection.outlook.com ([2a01:111:f403:c40d::4] helo=SY5PR01CU010.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vNImo-0016X7-2U for pgsql-general@lists.postgresql.org; Sun, 23 Nov 2025 22:42:29 +0000 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=y0NR4cEqotqRtwNdSAYISSyNgFNWTNDJFyL0xOsjWDs9HX+1RAsenPHli80P5QkP5ZSHxGSe6BKsjJ/i2vwMgO3Z6CAcKCtiUbM6Kd5q0aHhkGLKtKcA1yajjweZHyFcxB5L+Fyf25m6pKQXHOTr91JSWOk3uEXVvKRptWhg67pfHGDY5E5cRfu6s1zYc9tIZ8CWn/DFywnVCLTt1tIlonPfTjLdUv3RgKKiWw6E38o4WFlHVUMJa73pEDNOQ6QhR5CFag7KccDlSU6jjk9gpgIuvvISUoa6pUzR7YzzUO1iEAkQ5il58T7950x2i7gEf6ilWHxz4bmipbeyyFE7wQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=el2+gD4w3Kj5KaOwG6jEMBUZRaXjsErglXAm88azvWI=; b=gOa70L9O21iZs5au4g62Ql6oV7z+I4xB5dP8p0DoXVgvm8E9VS6DJWEChUsjaEpc9UGOEmiic5jkRnKqZjxDDjrgLVCpJCjsKvicqZWVFfq70PFWcb8LipCOtSaUYB0AbJCjCjZBga/KjFzIRJRbSahdG0Xpz5vzpm/MTpahyivpPCIGTkaX7dfIUUvKyd1BE7Yn++09oDOdC98AulMo42ygEFQ+8rELmB+yV8OSv/7uUuTATgfsT2Mhl4nSWeGA/8L3bNVYpzqlO6lmznhV4ZKXurjMUuDfFAx9koYcsteyFO4X2aulczqacYiBz+wXA1fdGreqdg0HK6evjS8yZw== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 40.93.136.19) smtp.rcpttodomain=gmail.com smtp.mailfrom=niwa.co.nz; dmarc=pass (p=none sp=none pct=100) action=none header.from=niwa.co.nz; dkim=pass (signature was verified) header.d=niwa.co.nz; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=niwa.co.nz] dkim=[1,1,header.d=niwa.co.nz] dmarc=[1,1,header.from=niwa.co.nz]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niwa.co.nz; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=el2+gD4w3Kj5KaOwG6jEMBUZRaXjsErglXAm88azvWI=; b=h539HYC5PClhW+xRDSh+ULz4LOWSAi11Y/JJVraoI7nIW1ChOukj8xkyDhMh1zP9xiZqubXQu9kA/5LqXdqRGJTVgdE49HvPQ0OUiCxVV1d55raAqcATxNROZPcZ8M+rHPkx8vA5k7s5b5YEH4RvfGknlJdyGlP8TAHzkQley3M= Received: from SY5P300CA0053.AUSP300.PROD.OUTLOOK.COM (2603:10c6:10:1fe::18) by SY8P300MB0661.AUSP300.PROD.OUTLOOK.COM (2603:10c6:10:292::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9343.17; Sun, 23 Nov 2025 22:42:14 +0000 Received: from SY1PEPF000066C3.ausprd01.prod.outlook.com (2603:10c6:10:1fe:cafe::58) by SY5P300CA0053.outlook.office365.com (2603:10c6:10:1fe::18) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9343.17 via Frontend Transport; Sun, 23 Nov 2025 22:42:07 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.93.136.19) smtp.mailfrom=niwa.co.nz; dkim=pass (signature was verified) header.d=niwa.co.nz;dmarc=pass action=none header.from=niwa.co.nz; Received-SPF: Pass (protection.outlook.com: domain of niwa.co.nz designates 40.93.136.19 as permitted sender) receiver=protection.outlook.com; client-ip=40.93.136.19; helo=SY8PR01CU002.outbound.protection.outlook.com; pr=C Received: from niwa.co.nz (202.36.29.95) by SY1PEPF000066C3.mail.protection.outlook.com (10.167.241.53) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9366.7 via Frontend Transport; Sun, 23 Nov 2025 22:42:14 +0000 Received: from SY8PR01CU002.outbound.protection.outlook.com (mail-australiaeastazlp17010019.outbound.protection.outlook.com [40.93.136.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by seemailout01.niwa.co.nz (Postfix) with ESMTPS id E8B542304EE0; Mon, 24 Nov 2025 11:42:13 +1300 (NZDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vX7zFOgSyRyHk7jQkN3k/krhgbQzzrUU6/0B+AgO/FZVSkf97rZAQEz6kKMrJvzXfmB6sqGJo+IomTzuy9ZW/LN1Arzwrh2pUfSKcWmTFheirByfLqxmYYB+p9OuuDp5cI/sZqF6ZMtZPa1TNnAf2qDF9V+FfvvbbUKr1NBD79QF3MW4I8kisGREII+ua2igVrfmcfstSQfn/vDtDF8I1P6oIn0d8hc0cueTGQ+54Vo9CwBHSd6kplxuBZHJhrd7UOyx0AqpxfxzA1YdStsJzO43fu/5mQyNQmOybzTjd2Swazy4n6Koqh+7eqNqLvbIuc3pK08uMltxX7nM/GiN2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=el2+gD4w3Kj5KaOwG6jEMBUZRaXjsErglXAm88azvWI=; b=oqZgcvrpeL/YabEj3SqUwrmZoIEY08AszH8DPhdb0RyEXzXnc7uA89+an0x5p5YWlpPF9awzpDo3Y/dFGzEQZjvrFZEzhzhSMg2fpFDfAcEQ/MqYfYHaiB2rOHMjp7mvKgjQmUMVMj/LhsqclWkZIme3HdjbOsgqy/xYXrwgDzvXhlzgAd1bWxWj7exalsJpQa2yLzMLEveDpcB5mfPP9EmzEspa28h1XOq5aFwDSxAZYOIit7Yp6zA+QvRquF/TT1FDvONEOvcB8+tr6DmZs49CvDbz0BOG2ruWpmMWvXhqbmPJS0uIkWeMg7W4NtAmHb/TPEmTyYbZSvjQIe6Aug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=niwa.co.nz; dmarc=pass action=none header.from=niwa.co.nz; dkim=pass header.d=niwa.co.nz; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niwa.co.nz; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=el2+gD4w3Kj5KaOwG6jEMBUZRaXjsErglXAm88azvWI=; b=h539HYC5PClhW+xRDSh+ULz4LOWSAi11Y/JJVraoI7nIW1ChOukj8xkyDhMh1zP9xiZqubXQu9kA/5LqXdqRGJTVgdE49HvPQ0OUiCxVV1d55raAqcATxNROZPcZ8M+rHPkx8vA5k7s5b5YEH4RvfGknlJdyGlP8TAHzkQley3M= Received: from SY7P300MB0761.AUSP300.PROD.OUTLOOK.COM (2603:10c6:10:28c::10) by SY7P300MB0638.AUSP300.PROD.OUTLOOK.COM (2603:10c6:10:288::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9343.17; Sun, 23 Nov 2025 22:42:11 +0000 Received: from SY7P300MB0761.AUSP300.PROD.OUTLOOK.COM ([fe80::da5c:b8f6:3849:775c]) by SY7P300MB0761.AUSP300.PROD.OUTLOOK.COM ([fe80::da5c:b8f6:3849:775c%3]) with mapi id 15.20.9343.016; Sun, 23 Nov 2025 22:42:11 +0000 From: Brent Wood To: Tom Lane , =?iso-8859-1?Q?Ertan_K=FC=E7=FCkoglu?= CC: "pgsql-general@lists.postgresql.org" Subject: Re: Restore Windows dump to Linux (locale issue) Thread-Topic: Restore Windows dump to Linux (locale issue) Thread-Index: AQHcXMIEAUMCM30FfEuTcWEsIHCw07UA0BYAgAAKrow= Date: Sun, 23 Nov 2025 22:42:11 +0000 Message-ID: References: <811312.1763935324@sss.pgh.pa.us> In-Reply-To: <811312.1763935324@sss.pgh.pa.us> Accept-Language: en-NZ, en-US Content-Language: en-NZ X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=niwa.co.nz; x-ms-traffictypediagnostic: SY7P300MB0761:EE_|SY7P300MB0638:EE_|SY1PEPF000066C3:EE_|SY8P300MB0661:EE_ X-MS-Office365-Filtering-Correlation-Id: 7eca7af8-4f0e-4fe3-c1e4-08de2ae18caa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0;ARA:13230040|366016|69100299015|376014|1800799024|38070700021|7053199007|8096899003; X-Microsoft-Antispam-Message-Info-Original: =?us-ascii?Q?TgZJ7kqlwIlIK63QoRCd03DcmzA9bTZq1Lq1pvpGHLomlSSSsp3brDTnGwr4?= =?us-ascii?Q?NwN6t0nKcYEeeZ95EAT6RCEkP1ScYi2zy6yLAwwTKeMV38qh1d8/MV5o4CmM?= =?us-ascii?Q?fdmBtslPqmRn/fAraW2n7JZ/N7zY2vrOOxShyssOY5g+45fI3tuFvFAbc8Nj?= =?us-ascii?Q?MVnIMRtpS/xPTbvHGXY02lOoLkkgeL05bUCI3z8NOQul3yRsje4q2SvpxVDQ?= =?us-ascii?Q?wehzMO+nz8nN/ztEPQfrJSjjCD2MbFHqRUb2e0q4q3i4tnTN23ASw46+2OyL?= =?us-ascii?Q?BDpiSMLDsZX96Qdxz/4Cwm83BrJ3dT1cprwiBbV2kPaq6/smw4MdqvDnd2sq?= =?us-ascii?Q?FAJUlgzhDiHOAkm+3C9LU9U2cok10ayd6LGOhwgOXcgiNqPty+iQKGr7tL7j?= =?us-ascii?Q?O7ruYLr1Zqug5kyZkRVcrlNBaj2kCRXc+kvo5KBZH6MgNOsLjHKlLtN5zikc?= =?us-ascii?Q?VJ3IxMUKmoB9jZiAa3Byul2VG+5mJITsxJL5lvHQP4I9NzECnTJLtmhehYyY?= =?us-ascii?Q?gnIZZZ5MK8ETvS8z21xhvmh0YWUAdfpGI21qoPZdZHNX9SN6152q7rqereDa?= =?us-ascii?Q?fgvyZ/djS2mz7XXjfrT+jSoKIQVvKl5xnD7mafH96KoAFCrN45GjOdntplJQ?= =?us-ascii?Q?RzcwZ7kMGwQsBeWBU8XYDcEvoX0LFLkWubAymiRn0YOwtdpECgXeZ8ojSdvL?= =?us-ascii?Q?keVoRFGf+P4k/gL7LXV4+5gEPy3bQveJHJlDrVSGfo+ie4CLjqBWM/8AByj8?= =?us-ascii?Q?rSb8L8ghkHNl/rxXSJ3/+k61NhGD7+sm6g8l+3IXqpLNF5opySFibwf0RAbt?= =?us-ascii?Q?1jD47dBCKgFaDUKRVaAGuNCgClB6WWdFUjtFnHLYy35QBBj/T0Ot7rMmMzHk?= =?us-ascii?Q?x584GbiU64H/+1NWEioc6iTl/8uL1IzVssY+f2r0r6HeHeoifKLRLu2kq/6a?= =?us-ascii?Q?82QVCG8CBuKeJiD0o9RD+K9C0CWuaJHG0xAmbQ3hH4pCiAB7eLS+qVD6QXAP?= =?us-ascii?Q?5dtulq0tcTNjFvEpSeW3XQpmSYpPd36yEyaJlW/qBHhmUdpKZpmqdk+eONzM?= =?us-ascii?Q?TC+lraOGqK1/faW1Js2VSFF8q4rQz7Jh6Z5Qar4ZgEpPGhTH/SIThATd90uy?= =?us-ascii?Q?IRUmQsuHl+/TEMkCZxwjM7GOG5rPPiqU3+vD7i65n66hMY36OGmA9ObI9mw8?= =?us-ascii?Q?VSJ6PjFFT+zhpTlg/1rBRlKPbj18I020H+7mrcc+w6tSsinnGXkpunCKWdwG?= =?us-ascii?Q?q5uhee/jnQv7Bs0O8z6gmn9fSh55a8lq1TKFwIeoE7Dx0CcoGVJfEd38su/S?= =?us-ascii?Q?zcHuK1Af+7nMoxW3DtsZviRQJv5Zscctmke/vnRrzSXodXKzp82QKvZg3lRD?= =?us-ascii?Q?7SOVmuuDrsIbQ7geIF/uuFfxwz0Sjd84WldkxYBmmsQS3hMapr0eYtN7mwG+?= =?us-ascii?Q?UCPabSFQ3UbSjs1MCLpT7UjaOoVJPRLyhPyVLZUUkfIfdTpFml6OdsCVJdlQ?= =?us-ascii?Q?mh2z0IShKpq5m4lLFbsBhRRKIISySWc0c886?= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SY7P300MB0761.AUSP300.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(366016)(69100299015)(376014)(1800799024)(38070700021)(7053199007)(8096899003);DIR:OUT;SFP:1102; Content-Type: multipart/alternative; boundary="_000_SY7P300MB0761D22A982CFDA9052493CCA1D3ASY7P300MB0761AUSP_" MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY7P300MB0638 X-SSS-Domain: niwa.co.nz X-EOPAttributedMessage: 0 X-MS-Exchange-SkipListedInternetSender: ip=[40.93.136.19];domain=SY8PR01CU002.outbound.protection.outlook.com X-MS-Exchange-ExternalOriginalInternetSender: ip=[40.93.136.19];domain=SY8PR01CU002.outbound.protection.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: SY1PEPF000066C3.ausprd01.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 6487a780-dfad-4cf1-3693-08de2ae18ac3 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|14060799003|1800799024|30052699003|156008|1032899013|35042699022|69100299015|376014|36860700013|7053199007|2066899003|4076899003|13003099007|8096899003; X-Microsoft-Antispam-Message-Info: =?iso-8859-1?Q?cDZuWfWhQu4dMVZ0+mPyL6e7N8rclGQ/0aGDbIWYmpJbeUKkFf/Xxvaopm?= =?iso-8859-1?Q?O/7y2/708/iiGM4Evc73uPw47COpEYrT/og4eBKZ66lRSmM3e2JfW+XJ9c?= =?iso-8859-1?Q?Q1Z4AsNSwvCMtfcQVnoAX5WDtwWRdQ8ZVJ+LsFho4TYdkxsYAsUmck3NXx?= =?iso-8859-1?Q?AnKCf/rOy4ZeFMzi7PiwQzJ/DuNwSyL/Ul8ZJS8Y/iqE8f81RkzOhs8JC5?= =?iso-8859-1?Q?wNdT2+/EAroUnXXNG8fIKSCOKmHGuHCz6VPExoTt42RKG5ilIDjMIWedVK?= =?iso-8859-1?Q?UEoVxXppFXdtg5kiB4sfQ2OtPFuS7CSvi3V1WNduTTVlIJNGUN7tlMCugn?= =?iso-8859-1?Q?rXs07+3DAABHGj+zHny/l7yvPWbvjDBXDaQrtFXf4zhxmfe8WMxaPzDPAE?= =?iso-8859-1?Q?FWeg5QWV8cyL1cAsdCaych1fuiyiANj9ZVIP642TQMneHDhQw/Hx/Jh38T?= =?iso-8859-1?Q?UwWyG6HDQxe8SrwQ05ohAEp0/7XnnWPHd9F4D/P1OGYuKLr9/4AMkrJhC7?= =?iso-8859-1?Q?Q1qCn/HoKX0uYHCum2wadYr+q8gvW+VWjGw24SxTLgyzn6UQyYPUGvyRtM?= =?iso-8859-1?Q?GLxrKknflJkkskkdDVEhMmZYe+RvwpipvZ7YFaZBASUnysskL/Nruk/NT9?= =?iso-8859-1?Q?RNkqrL15dJmpx9m20E1ZOmXadX3hhvGStIXH97ZrVBLcDRU/pjpmcohYWo?= =?iso-8859-1?Q?eraJE0zWahC/kQvk4lPjbeXBhqz1jT+QLzUC4n4VtsGhfAjri2845wL8UY?= =?iso-8859-1?Q?A+7EWiCxtIGvjppJGHRLK5DRgrOJ+MHAoDkOQ3GdTVNsD6CAaL1YixA9RI?= =?iso-8859-1?Q?tqO/a0Qj81L0jl6hjhxlEdbkBWTCXqv+djbfRx7lya9mrSbL7U2tLz4LxI?= =?iso-8859-1?Q?E3dva/1cb0XdKj9JhUPUW2920Yb9HTkMtJUqxp1dSdoVuGnPdpMOm6RCn7?= =?iso-8859-1?Q?nt5125RNyt568QfEbbzge3AGGYS6h3XGt29LnlM6JqE748ttQ4TOhU4V/r?= =?iso-8859-1?Q?h2nOJtqJ0BopdbH6SGBOgC7HTy9LwNc5+3sXkUPQVFBiAJCyALeQFNJlWo?= =?iso-8859-1?Q?FxZ1qOtyhA2wFKm7FpZmDHlg/oz9M2aUyiLintT18GJGTixdBCMwaov0Iw?= =?iso-8859-1?Q?hu9D6Q93JzJiIHnfDKw05WQbBIGCRNc11+RLobylpv+DwyodwmLaGxbh39?= =?iso-8859-1?Q?rinlrCtYJckMgA=3D=3D?= X-Forefront-Antispam-Report: CIP:202.36.29.95;CTRY:AU;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SY8PR01CU002.outbound.protection.outlook.com;PTR:mail-australiaeastazlp17010019.outbound.protection.outlook.com;CAT:NONE;SFS:(13230040)(82310400026)(14060799003)(1800799024)(30052699003)(156008)(1032899013)(35042699022)(69100299015)(376014)(36860700013)(7053199007)(2066899003)(4076899003)(13003099007)(8096899003);DIR:OUT;SFP:1102; X-OriginatorOrg: niwa.co.nz X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2025 22:42:14.8084 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7eca7af8-4f0e-4fe3-c1e4-08de2ae18caa X-MS-Exchange-CrossTenant-Id: 41caed73-6a0c-468a-ba49-9ff6aafd1c77 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=41caed73-6a0c-468a-ba49-9ff6aafd1c77;Ip=[202.36.29.95];Helo=[niwa.co.nz] X-MS-Exchange-CrossTenant-AuthSource: SY1PEPF000066C3.ausprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY8P300MB0661 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_SY7P300MB0761D22A982CFDA9052493CCA1D3ASY7P300MB0761AUSP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable If the dump file is too big to edit conventionally, piping it through a str= eam editor like sed to make the required changes works nicely. It can be done on the fly in the restore process if required. Brent Wood Principal Technician, Fisheries NIWA DDI: +64 (4) 3860529 ________________________________ From: Tom Lane Sent: Monday, 24 November 2025 11:02 To: Ertan K=FC=E7=FCkoglu Cc: pgsql-general@lists.postgresql.org Subject: Re: Restore Windows dump to Linux (locale issue) =3D?UTF-8?B?RXJ0YW4gS8O8w6fDvGtvZ2x1?=3D writes= : > I am using PostgreSQL 18.1 on a Windows system. > I need to move that database to a Linux system of the same version number= . > Windows system use locales name as tr-TR (this is UTF-8 locale) > Linux system use locale name as tr_TR.UTF-8 > My cluster backup gives error at restore (I think because of that locale > naming difference) as below > psql:/db.dump:133: ERROR: invalid LC_COLLATE locale name: "tr-TR" Edit the dump so that the databases are created with Linux-compatible locale names. You should find lines like CREATE DATABASE foo WITH TEMPLATE =3D template0 ENCODING =3D 'UTF-8' LOCALE= _PROVIDER =3D libc LOCALE =3D 'tr-TR'; (details will vary depending on PG version) and changing the locale strings ought to do the trick. If the dump file is too big for your editor, consider splitting it into schema-only and data-only dumps. regards, tom lane Brent Wood Principal Technician - GIS and Spatial Data Management +64-4-386-0529 301 Evans Bay Parade, Greta Point, Hataitai, Wellington, New Zealand Earth Sciences New Zealand [Earth Sciences New Zealand] The Institute of Geological and Nuclear Sciences Limited and the National I= nstitute of Water and Atmospheric Research Limited joined to become the New= Zealand Institute for Earth Science Limited. We are known as Earth Science= s New Zealand. For more information on the Earth Sciences transition click = here. Notice: This email may contain information which is confidential and/or sub= ject to copyright, and may not be used, published or redistributed without = the prior written consent of Earth Sciences New Zealand. If you are not the= intended recipient, please immediately notify the sender and delete the em= ail and any attachments. Any opinion or views expressed in this email are t= hose of the individual sender and may not represent those of Earth Sciences= New Zealand. For information about how we process data and monitor communications please= see our privacy policy. --_000_SY7P300MB0761D22A982CFDA9052493CCA1D3ASY7P300MB0761AUSP_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
If the dump file is too big to edit conventionally, piping it through a str= eam editor like sed to make the required changes works nicely.
It can be done on the fly in the restore process if required.

Brent Wood

Principal Technician, Fisheries
NIWA
DDI:  +64 (4) 3860529

From: Tom Lane <tgl@sss.= pgh.pa.us>
Sent: Monday, 24 November 2025 11:02
To: Ertan K=FC=E7=FCkoglu <ertan.kucukoglu@gmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postg= resql.org>
Subject: Re: Restore Windows dump to Linux (locale issue)
 
=3D?UTF-8?B?RXJ0YW4gS8O8w6fDvGtvZ2x1?=3D <ertan= .kucukoglu@gmail.com> writes:
> I am using PostgreSQL 18.1 on a Windows system.
> I need to move that database to a Linux system of the same version num= ber.
> Windows system use locales name as tr-TR (this is UTF-8 locale)
> Linux system use locale name as tr_TR.UTF-8
> My cluster backup gives error at restore (I think because of that loca= le
> naming difference) as below
> psql:/db.dump:133: ERROR:  invalid LC_COLLATE locale name: "= tr-TR"

Edit the dump so that the databases are created with Linux-compatible
locale names.  You should find lines like

CREATE DATABASE foo WITH TEMPLATE =3D template0 ENCODING =3D 'UTF-8' LOCALE= _PROVIDER =3D libc LOCALE =3D 'tr-TR';

(details will vary depending on PG version) and changing the locale
strings ought to do the trick.

If the dump file is too big for your editor, consider splitting it
into schema-only and data-only dumps.

            &nb= sp;           regards, to= m lane



Brent Wood Principal Technician - GIS and Spatial Data= Management
+64-= 4-386-0529
301 Evans Bay Parade, Greta Point, Hataitai, Wellington, New Zealand
Earth Sciences New Zealand
3D"Earth
The Institute of Geological and Nuclear Sciences Limited and the National I= nstitute of Water and Atmospheric Research Limited joined to become the New= Zealand Institute for Earth Science Limited. We are known as Earth Science= s New Zealand. For more information on the Earth Sciences transition click here.

Notice: This email may contain information which is confidential and= /or subject to copyright, and may not be used, published or redistributed w= ithout the prior written consent of Earth Sciences New Zealand. If you are = not the intended recipient, please immediately notify the sender and delete the email and any attachments. An= y opinion or views expressed in this email are those of the individual send= er and may not represent those of Earth Sciences New Zealand.

For information about how we process data and monitor communications please= see our privacy policy= .
--_000_SY7P300MB0761D22A982CFDA9052493CCA1D3ASY7P300MB0761AUSP_--