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.94.2) (envelope-from ) id 1uopDF-00Av1v-CC for pgsql-general@arkaria.postgresql.org; Wed, 20 Aug 2025 20:15:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uopDE-00BIKd-R9 for pgsql-general@arkaria.postgresql.org; Wed, 20 Aug 2025 20:15:13 +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.94.2) (envelope-from ) id 1uopDE-00BIKV-GN for pgsql-general@lists.postgresql.org; Wed, 20 Aug 2025 20:15:13 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uopDC-000tvC-2W for pgsql-general@lists.postgresql.org; Wed, 20 Aug 2025 20:15:12 +0000 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-61a54560cd1so38254a12.0 for ; Wed, 20 Aug 2025 13:15:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755720907; x=1756325707; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=aLGiIGEYfdwyxaCFScHwrt79cgKkd++89EW2shjGYqo=; b=I2/7OXc7j/OvwKPU5RO/fiQ5wpG0XVidqiAQZwbff3nwtFSbfl6Ykj3L1ywz9HGEIl bR+B2Dd6mM8brfA0c4evCVaoQqk7ZpayPmLou5TYvFuOHElh+2hb7KnCXMAfsOPZNDJM UwACucjqSSPHPeOuYulLrYih/nh16nbqBby7++g5yOqdUHmzTXLxjsXuXtUtFNVHOLQV Q3lHMX7xcQsS1sTKojKwHabTLarkIbhMPeLjLqfKE/ObwfKMnEXFJcFespzIqnr0ZuLj SOYVzNIz1OFPEF/o82SBjnO+VmmX7Ges7+xHoBjJQJyrQu7lsKrXGx8SvJ0MT3S6nkGH 1zBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755720907; x=1756325707; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aLGiIGEYfdwyxaCFScHwrt79cgKkd++89EW2shjGYqo=; b=m4jWhlbR6vxEU49KqR5Xj32UL3S64JPzSDqtop/TWmo5uH454/vlabwYGH2rV0oXMd BNDy3VTtRmuvKmbv6ZX/6Ntrs01kV4pyOgUMtfNMfxMOkpnOJIISmA2rrpBqpcAPUiqt zZvXadW7gQ02a4bMMb7qfJPXQvbPnUo8V3pF1wn+FSEoWrvQfrws7ejqgzPR+U9b8U0v no7iLIOtkUdTl63GdcLUS18qKOlfNb6h1UwFWgh7T7vaWrXEq7eQ9dhrFe+Y/6UqhgMB 8N+g/u+HfkW/kET/cQr2t/TpI18VviufpG2ULsm3GzpeckSWoIw5uNVWqzaKXld1K4R/ Pjjg== X-Gm-Message-State: AOJu0YwFK+dtkN77pAiOtN5S4/Ae+4KbQv9pEkdJItfRmCo3w9OC2UQQ iA/tbNCu0tyrTJ2TPFXeilxy57pa6NjlmZLcJFHHFg7dMpQMjuHpQnM1 X-Gm-Gg: ASbGncv026AZ9tsPu7pmrMPnSL9woWJBOVB+DynpZZvn+kRHKI22S7+EtcAcO6OrJA5 ZQPnbq0OexjuKMWuMILSCkKz1G9gIPrEzpTdb0Jlxk7CaumSrlKrN5quKwUxthtanw4V8Syq8Zc YZM9hxya5LZZokO3Mo1wowwfbNeQX9Bao8VNUI30EJgzsoeMh9vK+ZfGZcjFdqWsjYcUfnmuM19 q+23164zjxFBtzR34XaZ+tdWy1D1wu1RZSz08mdYKnJcaXXF1clm3pWGeTtO/KxOtrv+0HuOrhs u7M8MLe/FhICQJN0+tQY3/RfJG1OkBK10peYouhPo442BwBwihBWtEw53KfKO8UHSyx+4KMh3x7 3gPHDoyf5QfjNHhBn80yXyid4Q10OLEo4lm9LV2QKBIngY4um0Q== X-Google-Smtp-Source: AGHT+IEKGjlXoCq5H2NY/HcVwIS7iSaD6fF8AfM4AhJidvKPbETnNr/o4LGGVi3xjY5fjB7bPMjYWg== X-Received: by 2002:a05:6402:2355:b0:61b:6c51:3ffe with SMTP id 4fb4d7f45d1cf-61bf86dfdd3mr14843a12.2.1755720906718; Wed, 20 Aug 2025 13:15:06 -0700 (PDT) Received: from smtpclient.apple ([188.212.112.125]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-61a757742c4sm4144591a12.37.2025.08.20.13.15.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Aug 2025 13:15:06 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: MS SQL to Postgres From: Alban Hertroys In-Reply-To: Date: Wed, 20 Aug 2025 22:14:56 +0200 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <48AA15E9-1979-489D-B94E-5FE2972A6AD2@gmail.com> References: To: KK CHN X-Mailer: Apple Mail (2.3826.700.81) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 20 Aug 2025, at 19:25, KK CHN wrote: (=E2=80=A6) > 4. Any hurdles or challenges or risks=20 MS SQL defaults to case insensitive string comparisons, trimming = trailing white-space. PostgreSQL defaults to case sensitive string comparisons, so incorrectly = cased strings in queries that match in MS SQL will not match in = PostgreSQL. The trailing spaces bit is not going to matter while moving the data to = Postgres, as you will not get any trailing spaces from MS SQL to be = stored in PostgreSQL (they=E2=80=99ve been trimmed already, after all) - = but it could trigger some application bugs where people have assumed = that trailing spaces get trimmed. Also, time zone names are wildly different between the two. MS SQL uses = Microsoft Windows time zone names, Postgres (and most other RDBMSes) use = IANA names. Alban Hertroys -- There is always an exception to always.