Re: Serial sequence name when table/column name in uppercase

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sebastien FLAESCH <sf(at)4js(dot)com>
Cc: pgsql-sql(at)lists(dot)postgresql(dot)org
Subject: Re: Serial sequence name when table/column name in uppercase
Date: 2021-03-31 13:55:04
Message-ID: 3167888.1617198904@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Sebastien FLAESCH <sf(at)4js(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Sebastien FLAESCH 2021-03-31 14:57:57 Re: Serial sequence name when table/column name in uppercase
Previous Message Sebastien FLAESCH 2021-03-31 10:13:30 Re: Serial sequence name when table/column name in uppercase