Prefixing schema name

From: Tiffany Thang <tiffanythang(at)gmail(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Prefixing schema name
Date: 2018-03-07 23:05:16
Message-ID: CAB_W-NN2Bx6AseZJrijUMG9M82G9Mi0sRuaUJxeh+9x+1cqp2A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
Would it be possible to create a table or index in a schema without
prefixing the schema name? I find it a hassle to keep specifying the schema
name when I create an object or performing DMLs in a schema. The
search_path configuration works only for queries.

For example:
Is there a way to run the create/insert statements below without prefixing
the schema name, user1?

As the user, user1:
Create table user1.table1 (id int);
Insert into user1.table1 values (1);

Thanks.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jan Bilek 2018-03-07 23:06:59 cached plan must not change result type
Previous Message Alvaro Herrera 2018-03-07 21:50:34 Re: Help troubleshooting SubtransControlLock problems