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 1w6l4o-004can-0E for pgsql-general@arkaria.postgresql.org; Sun, 29 Mar 2026 08:00:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w6l4l-00G0uI-0I for pgsql-general@arkaria.postgresql.org; Sun, 29 Mar 2026 08:00:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w6l4k-00G0u9-2N for pgsql-general@lists.postgresql.org; Sun, 29 Mar 2026 08:00:51 +0000 Received: from mail-yx1-xb134.google.com ([2607:f8b0:4864:20::b134]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w6l4h-00000001mzv-2rfB for pgsql-general@lists.postgresql.org; Sun, 29 Mar 2026 08:00:50 +0000 Received: by mail-yx1-xb134.google.com with SMTP id 956f58d0204a3-64ef161129bso3445236d50.1 for ; Sun, 29 Mar 2026 01:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774771245; cv=none; d=google.com; s=arc-20240605; b=HbjNw9B9r4YbWs1R5kkyWNBYhh+jxO5OLmcPAFSp2dUCDRPz2D+4zf5u8fma2rPdwk 437XBQMBrYz558aUTgb9eB9D/je4ZAxNqVzDKGE/YDC6eAUtJviqGw+T/wtZMf4q1FqR GRQ9MaXjDNyYotsQpDrn5josi/3vd96AnopOdA7CSNZojyvGR3V3drDeWxyjLRKoYr32 p6X67u96pzq43mb0JgjdhnjlTMNdieSXL5X+06MLLRCIPUBzDWP68e7Qgma0QLYXY1Wk SJmQLMU2ds73HcUI8z4VRnwTCR6fnqW/Tus/46orzN7tYLQszQQChUgPz9mfU2kC3N4+ Ttpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=+BRbQ+XVQe9k7xbw4L+woMBeWm9U2Y9kPFXEvTVpC48=; fh=iom9QabqcY3BVPJMCE5NfwPSoZ2eUGqQFnmAe8RNv14=; b=fk7HN/9dGuEqjcposELh2WowkUihYt2FbycoxCuCtSBpdujGaSsBVdEE2D/DB1XkSG 1LutPPOxexoyjAtaeN1hMmRst7p5ken/Ha41u+KI/M29tLd2sHBb7v5gBLMkLutnvnsw lm6kxHP3FL21E1KtWdWulEU4cDYGrwlwKvLRdOH1QyrkNrc73TQgXY7SzO4ZyHjWFzP1 yJJILY4kh3+kuOc9Mk8rgDHJ7885fx4+9Iajyjx/jVXVtPzXfRcDGQZvSstRxqzDfhEr AZRSkeRPtliaoY7Tsw8DK/c4Hi9pB+IILmsqw2f8kGmm/haBj91F9jWZ7EWxVEHlOB3D IV7g==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774771245; x=1775376045; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+BRbQ+XVQe9k7xbw4L+woMBeWm9U2Y9kPFXEvTVpC48=; b=qMW7o9Bquci/wgUNgIRHYqu2o35V2jZ8wiTlbzN1SXNnHgEjYeIKtgMsASSN/CTAmY xEiRmlE+6sDdSsilg7Tn+a8hcJYzZkJjhvyxacZH+awA7qVFV4e8uYctlaoYuwC06X+J z0XwmTj2LE3dnIMbLy8w1uJlgM0VM33XmuNX53jHQRVoBNvSM2z7YTzalZ/HAEnk0DmQ FiyiY4YRq3/W22Y8f7C02PDg5Uhdic34e4Y32iwjX4mCYjeQ/9ueC8t6vSEgPukkXBut Az0dt5kZY5RNRkXjxJJySDSROVBjmyV1ecDvOJgwdAkZ7G8rbjFQZ26CfjXT0MDN5+xu WSJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774771245; x=1775376045; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+BRbQ+XVQe9k7xbw4L+woMBeWm9U2Y9kPFXEvTVpC48=; b=Dz3irYiI+YtzB/k/zcRG9owj1a8KTisJUqLkd1F7jt7o/M15F90748N2UkOEJVdwYA ke/FXggetp0R3Gd7m3G3Rq1msHxKxS9g/VFH6Nc5z+TiCZjORTqBtWyBFbLo1Fc1OVyL AZgbyeRXpGPrLBpIFM4nG6yVI6Jnpfd7DtglF9hKfJ72xCYy+urj0MX3+1rUln6mNrG0 8/y81GfMPpZfOuDwit3STKquxK2nPPq2qev2/LOVH9NRlALfjG9mQ8MZZKetJBfyRUwC 9RWFiui9krZMrKVC4HgbhOK0xyJSgPOh5OdvI4eCApMPfUI3sWV1QNjnDEhMNaUcteZm EvJA== X-Forwarded-Encrypted: i=1; AJvYcCXKeALXao9LliUM9Xq611meEmCR6NiYfCsKHwjPbmJKXJyv7IqCyI5GZRBYkhpdJ7tmzW2Qq/Q7gH9sAFOy@lists.postgresql.org X-Gm-Message-State: AOJu0YzNivmrm3GSXCbraoolqSlwPIl3jlcPtLSv3nDOl3TikDLFzx+J ZWLmNj6OfUBuZLMydK6+J4ihxPxf0xR0NyHtZ3BJWhQ5XDNmvdPM7ySVDeF5uD6BZXHA5HCd7yY ZEu8jKPygIXI4FL8V9xenuR2g1oPp08w= X-Gm-Gg: ATEYQzxTp59JpNE2FjiZ4B3b6h3bR1hCp7oMPF6SipNfWZZRKqbqKx15kEPkXThwBUM OYiniK0V9R/xP5HH0qRfGB/0c1/+wnJqfSUvtNCsBv7UNSTMfLLjqR32zB2ltdnGWsfmgeQMDb2 i9hzcQbvdTa5iU9CqZuugLVPLV7d2ImvV6e1adr/DvzoJsKUP8zI7HjQ/UYt25+JE1f69uVVuQ6 chRhDtD/m83vDrKYp/fjAiumHPDmqqgQn+JWJaoxViwWg/QIivYlrxYGggleXJGJFs7IzmuR5mm cvJZ1jqxf9Tihgip1X3PyvGLImQav1l6OIgL/Z5+0ifnaq+YjSDVP1UMdZ798mHbiaF+6Q9u2En IvlGr3ZM0JUvG/wtsqpFVn7UKFW8sUfnivBv/gTrWga/UNaczTRFvtEXVXw== X-Received: by 2002:a05:690e:1183:b0:64f:fa7f:52c4 with SMTP id 956f58d0204a3-64ffa7f53b8mr7709168d50.3.1774771244984; Sun, 29 Mar 2026 01:00:44 -0700 (PDT) MIME-Version: 1.0 References: <04093112c084e767f09ffe34fe5f184a11088899.camel@cybertec.at> In-Reply-To: From: Pavel Stehule Date: Sun, 29 Mar 2026 10:00:08 +0200 X-Gm-Features: AQROBzCxcslCYM5FM_dCDq1f5MP307gy3-kiI4vmv0zvcRYD_fHpOLmtc8yjA-w Message-ID: Subject: Re: How to escape string in Postgres? To: Igor Korot Cc: Laurenz Albe , "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000009d6d33064e25215e" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000009d6d33064e25215e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi ne 29. 3. 2026 v 9:21 odes=C3=ADlatel Igor Korot napsa= l: > Hi, Lauren=E2=80=99s, > > On Sat, Mar 28, 2026 at 11:56=E2=80=AFPM Laurenz Albe > wrote: > >> On Sat, 2026-03-28 at 23:08 -0700, Igor Korot wrote: >> > In MS SQL server one can write a query like so >> > >> > SELECT a, b, c FROM [catalog].[schema].[table]; >> > >> > What do I use in Postgres instead of []? >> >> Normally, you read the documentation. > > > Agreed. > However trying to google on =E2=80=9CPostgres escaping query=E2=80=9D did= nt produce any > links to the docs. > generally, your question is not related to escaping https://www.postgresql.org/docs/18/sql-syntax-lexical.html#SQL-SYNTAX-IDENT= IFIERS Regards Pavel > > Thx. > > >> >> Yours, >> Laurenz Albe >> > --0000000000009d6d33064e25215e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

ne 29. 3. 2026 v=C2=A09:21 od= es=C3=ADlatel Igor Korot <ikorot01= @gmail.com> napsal:
Hi, Lauren=E2=80=99s,

On Sat, Mar 28, 2026= at 11:56=E2=80=AFPM Laurenz Albe <laurenz.albe@cybertec.at> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">On Sat, 2026-03-28 at 23:0= 8 -0700, Igor Korot wrote:
> In MS SQL server one can write a query like so
>
> SELECT a, b, c FROM [catalog].[schema].[table];
>
> What do I use in Postgres instead of []?

Normally, you read the documentation.

Agreed.
However trying to googl= e on =E2=80=9CPostgres escaping query=E2=80=9D didnt produce any links to t= he docs.

generally, your = question is not related to escaping


Regards

P= avel
=C2=A0

Thx.



Yours,
Laurenz Albe
--0000000000009d6d33064e25215e--