agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: Sebastien FLAESCH <sf@4js.com>
Cc: pgsql-sql@lists.postgresql.org
Subject: Re: Serial sequence name when table/column name in uppercase
Date: Wed, 31 Mar 2021 09:55:04 -0400
Message-ID: <3167888.1617198904@sss.pgh.pa.us> (raw)
In-Reply-To: <87d8f930-a87c-2d08-f362-d59655ca6c24@4js.com>
References: <cc5742f1-7b3f-5051-e033-e99ff69245e7@4js.com>
<CAB8KJ=hnuX0aKLj490Q2ryX0aFRg-z-aur=JtiW=7r4-prT+mQ@mail.gmail.com>
<87d8f930-a87c-2d08-f362-d59655ca6c24@4js.com>
Sebastien FLAESCH <sf@4js.com> writes:
> Ok thanks a lot I got it now, must specify double-quotes around table name.
You could use quote_ident() if you don't want to be bothered with the
rules for when to double-quote. Also, if you have the table's OID at
hand in the query, oid::regclass::text will produce a properly quoted
and schema-qualified name.
regards, tom lane
view thread (7+ messages) latest in thread
Message-ID: <3167888.1617198904@sss.pgh.pa.us>
Permalink: ../3167888.1617198904@sss.pgh.pa.us/
Also on: postgresql.org/message-id/3167888.1617198904@sss.pgh.pa.us
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, sf@4js.com, pgsql-sql@lists.postgresql.org
Subject: Re: Serial sequence name when table/column name in uppercase
In-Reply-To: <3167888.1617198904@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox