Re: Postgres query doesn't accept double quote around schema name in query statement - Mailing list pgsql-general

From Tom Lane
Subject Re: Postgres query doesn't accept double quote around schema name in query statement
Date
Msg-id 1205676.1682624715@sss.pgh.pa.us
Whole thread Raw
In response to Postgres query doesn't accept double quote around schema name in query statement  (Michael Xu <online.mxu@gmail.com>)
List pgsql-general
Michael Xu <online.mxu@gmail.com> writes:
> 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.

Works for me:

regression=# create schema ads;
CREATE SCHEMA
regression=# create table "ads"."MyTableName" (f1 int);
CREATE TABLE
regression=# select * from "ads"."MyTableName";
 f1 
----
(0 rows)

I'm wondering a bit about invisible white space in your schema
name; but without a self-contained test case we can do no more
than guess.

            regards, tom lane



pgsql-general by date:

Previous
From: Christophe Pettus
Date:
Subject: Re: Postgres query doesn't accept double quote around schema name in query statement
Next
From: Adrian Klaver
Date:
Subject: Re: Postgres query doesn't accept double quote around schema name in query statement