Re: Is there a way to check if objects are created with quotes or not?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Edwin UY <edwin(dot)uy(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Is there a way to check if objects are created with quotes or not?
Date: 2025-01-22 00:52:29
Message-ID: 3505849.1737507149@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Edwin UY <edwin(dot)uy(at)gmail(dot)com> writes:
> I am just now finding out that I sometimes I have to enclosed tables in
> quotes, that is a name named table1 need to be quoted as 'table1' otherwise
> it gives error.

"table1" shouldn't need quotes. The rules for that are here:

https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Gurjeet Singh 2025-01-22 01:32:13 Re: Is there a way to check if objects are created with quotes or not?
Previous Message Tom Lane 2025-01-22 00:48:48 Re: Commit with wait event on advisory lock!