Re: Postgres query doesn't accept double quote around schema name in query statement

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: Michael Xu <online(dot)mxu(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Postgres query doesn't accept double quote around schema name in query statement
Date: 2023-04-27 21:02:01
Message-ID: 6FAB6C86-6041-4105-96F0-DA27448B2615@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Apr 27, 2023, at 12:40 PM, Michael Xu <online(dot)mxu(at)gmail(dot)com> wrote:
>
> 
> Hi,
>
> By default, pgsql accepts double quotes around schema's name in a query, e.g. select * from "ads"."MyTableName". In our env, it throws 42P01:relation "ads.MyTableName" does not exist. It is okay if no double quote around schema name, select * from ads."MyTableName".
>
> Is there settings in pssql server or db level to change it back to its default to allow double quotes around schema.
>
> We're using PostgreSQL 13.7 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-10), 64-bit
>
> Thanks!
>
> Michael
>

Any chance the actual name of the schema is not all lowercase ads?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message gzh 2023-04-28 03:43:16 Re: psql:t_mstr.sql:994: ERROR: function to_char(numeric) does not exist
Previous Message Adrian Klaver 2023-04-27 19:46:35 Re: Postgres query doesn't accept double quote around schema name in query statement