Re: Operators and schemas - Mailing list pgsql-hackers

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

> What I'm now envisioning is that pg_dump will explicitly set
>     set search_path = 'foo';
> when dumping or reloading schema foo.

I had imagined that pg_dump would emit commands such as this:

CREATE SCHEMA foo CREATE TABLE bar ( ... ) CREATE otherthings
;

which is how I read the SQL standard.  Are there plans to implement the
CREATE SCHEMA command that way?  I think I recall someone from Toronto
mentioning something along these lines.

Obviously, this command style would be mostly equivalent to temporarily
setting the search path.  We'd also need alter schema, which SQL doesn't
have.

> Given the present semantics of
> search_path, that will imply an implicit search of pg_catalog before
> foo.

Interesting ... Is that only temporary?  (since you say "present"
semantics)

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: Curt Sampson
Date:
Subject: Re: Importing Large Amounts of Data
Next
From: Peter Eisentraut
Date:
Subject: Re: multibyte support by default