Re: RFD: schemas and different kinds of Postgres objects - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: RFD: schemas and different kinds of Postgres objects
Date
Msg-id Pine.LNX.4.30.0201221824360.686-100000@peter.localdomain
Whole thread Raw
In response to Re: RFD: schemas and different kinds of Postgres objects  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: RFD: schemas and different kinds of Postgres objects
List pgsql-hackers
Tom Lane writes:

> No, it doesn't work the same as today, because in that implementation
> both A and B can create the same tablename without complaint.  It then
> becomes very unclear which instance other people will get (unless your
> "any" placeholder somehow implies a search order).

The "search any schema" switch is only intended for use with legacy
databases, where duplicate names don't occur anyway.  If someone uses it
with a new schema-using database design, then he kind of ought to know
that the switch probably doesn't make a whole lot of sense.  However, to
get reproduceable behaviour anyway we can just define a search order, such
as by schema name.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Cross posting
Next
From: Peter Eisentraut
Date:
Subject: Re: RFD: schemas and different kinds of Postgres objects