Re: [HACKERS] IF (NOT) EXISTS in psql-completion - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] IF (NOT) EXISTS in psql-completion
Date
Msg-id 1603.1488158409@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] IF (NOT) EXISTS in psql-completion  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: [HACKERS] IF (NOT) EXISTS in psql-completion  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
Michael Paquier <michael.paquier@gmail.com> writes:
> On Mon, Feb 27, 2017 at 10:12 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> BTW ... can anyone explain to me the reason why we offer to complete
>> CREATE OBJECT with the names of existing objects of that kind?

> Isn't that to facilitate commands appended after CREATE SCHEMA? Say
> table foo is in schema1, and creating it in schema2 gets easier with
> tab completion?

Seems like pretty much of a stretch.  I've never done anything like
that, have you?
        regards, tom lane



pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: Re: [HACKERS] SerializedSnapshotData alignment
Next
From: Michael Paquier
Date:
Subject: Re: [HACKERS] IF (NOT) EXISTS in psql-completion