[GENERAL] Backup of postgres

1998-08-19 Thread Przemyslaw Bak
Hi all, I have following script to backup database: - cut -- #!/bin/sh PSQL=/usr/local/pgsql/bin/psql DUMP=/usr/local/pgsql/bin/pg_dump PREFIX=`date +%j` BACKUP_DIR=/usr/local/pgsql/data/base/.BACKUP Databases=`$PSQL -tq -d template1 -c "select datname from pg_database"` renice

[GENERAL] Re: [ADMIN] Backup of postgres

1998-08-19 Thread Marc Howard Zuckman
On Wed, 19 Aug 1998, Przemyslaw Bak wrote: > Hi all, > > I have following script to backup database: > - cut -- > #!/bin/sh > > PSQL=/usr/local/pgsql/bin/psql > DUMP=/usr/local/pgsql/bin/pg_dump > PREFIX=`date +%j` > BACKUP_DIR=/usr/local/pgsql/data/base/.BACKUP > > Databases=

Re: [GENERAL] pg-dump problem

1998-08-19 Thread Bruce Momjian
> Preface: > === > > Well, finally, we have decided to start backing up the Postgres databases > we have. And the decision even came before anything got destroyed... > > So, our sysadmin basically made a modified version of the dumpall script, > that creates individual files for each databas

Re: [GENERAL] pg-dump problem

1998-08-19 Thread Bruce Momjian
> At 17:51 +0300 on 19/8/98, Bruce Momjian wrote: > > > > I believe this was fixed in the coming 6.4 beta, September 1. > > Ah, I see... now, where did I put that time machine... :) > > Well, I thought I'd do a pg_dump -S and append the normal pg_dump to it. > Thus, the schema will be created

[GENERAL] pg-dump problem

1998-08-19 Thread Herouth Maoz
Preface: === Well, finally, we have decided to start backing up the Postgres databases we have. And the decision even came before anything got destroyed... So, our sysadmin basically made a modified version of the dumpall script, that creates individual files for each database, which include

Re: [GENERAL] pg-dump problem

1998-08-19 Thread Herouth Maoz
At 17:51 +0300 on 19/8/98, Bruce Momjian wrote: > I believe this was fixed in the coming 6.4 beta, September 1. Ah, I see... now, where did I put that time machine... :) Well, I thought I'd do a pg_dump -S and append the normal pg_dump to it. Thus, the schema will be created twice, and whateve

[GENERAL] simple auto increment question.

1998-08-19 Thread Jeremy Hansen
I want to create a simple auto increment field starting at for example. How do I do this in postgres? Thanks -jeremy