dbTalk Databases Forums  

[BUGS] a bug in pg_dump?

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] a bug in pg_dump? in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jaime Casanova
 
Posts: n/a

Default [BUGS] a bug in pg_dump? - 10-19-2004 , 12:40 PM






Hi all,

I have database with 6 schemas, i did an:
alter database set search_path to 'public',
'pg_catalog', 'academico', 'dobe', 'recaudaciones',
'becas', 'roles', 'seguridad'

but when i do a: pg_dump -C uescc > uescc.sql
it add the create statement for the database but not
add appropiates alter database for the parameters i
set search_path in this case.

But, pg_dumpall does.

a bug in pg_dump?

regards,
Jaime Casanova

__________________________________________________ _______
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] a bug in pg_dump? - 10-19-2004 , 01:35 PM






Jaime Casanova <systemguards (AT) yahoo (DOT) com> writes:
Quote:
but when i do a: pg_dump -C uescc > uescc.sql
it add the create statement for the database but not
add appropiates alter database for the parameters i
set search_path in this case.

But, pg_dumpall does.

a bug in pg_dump?
No. That functionality is assigned to pg_dumpall.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match


Reply With Quote
  #3  
Old   
Alvaro Herrera
 
Posts: n/a

Default Re: [BUGS] a bug in pg_dump? - 10-19-2004 , 02:09 PM



On Tue, Oct 19, 2004 at 02:25:35PM -0400, Tom Lane wrote:
Quote:
Jaime Casanova <systemguards (AT) yahoo (DOT) com> writes:
but when i do a: pg_dump -C uescc > uescc.sql
it add the create statement for the database but not
add appropiates alter database for the parameters i
set search_path in this case.

But, pg_dumpall does.

a bug in pg_dump?

No. That functionality is assigned to pg_dumpall.
There doesn't seem to be a way of extracting only database creation from
pg_dumpall. Or the schema of a single database, for example. There
_is_ a functionality gap here.


ISTM pg_dump -C (which dumps CREATE DATABASE) should dump ALTER DATABASE
commands too.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
You liked Linux a lot when he was just the gawky kid from down the block
mowing your lawn or shoveling the snow. But now that he wants to date
your daughter, you're not so sure he measures up. (Larry Greenemeier)


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


Reply With Quote
  #4  
Old   
Jaime Casanova
 
Posts: n/a

Default Re: [BUGS] a bug in pg_dump? - 10-19-2004 , 04:00 PM



--- Alvaro Herrera <alvherre (AT) dcc (DOT) uchile.cl> escribió:

Quote:
On Tue, Oct 19, 2004 at 02:25:35PM -0400, Tom Lane
wrote:
Jaime Casanova <systemguards (AT) yahoo (DOT) com> writes:
but when i do a: pg_dump -C uescc > uescc.sql
it add the create statement for the database but
not
add appropiates alter database for the
parameters i
set search_path in this case.

But, pg_dumpall does.

a bug in pg_dump?

No. That functionality is assigned to pg_dumpall.
Why in pg_dumpall and not in pg_dump -C?


Quote:
There doesn't seem to be a way of extracting only
database creation from
pg_dumpall. Or the schema of a single database, for
example. There
_is_ a functionality gap here.


ISTM pg_dump -C (which dumps CREATE DATABASE) should
dump ALTER DATABASE
commands too.
It seems to be the logical behavior, IMHO.

best regards,
Jaime Casanova

__________________________________________________ _______
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.