Re: [ADMIN] pg_dump, pg_restore from 9.2 on 8.4 server

2013-07-03 Thread Guillaume Lelarge
On Wed, 2013-07-03 at 20:53 +0900, Ian Lawrence Barwick wrote: > 2013/7/3 Jiří Hlinka : > > Hi All, > > > > I have a 8.4 server and I'd like to use --section parameter of pg_dump and > > pg_restore, which is available only in 9.2. > > > > 1. Is it, in general, safe to use 9.2 tools on 8.4 server?

Re: [ADMIN] pg_dump, pg_restore from 9.2 on 8.4 server

2013-07-03 Thread Ian Lawrence Barwick
2013/7/3 Jiří Hlinka : > Hi All, > > I have a 8.4 server and I'd like to use --section parameter of pg_dump and > pg_restore, which is available only in 9.2. > > 1. Is it, in general, safe to use 9.2 tools on 8.4 server? AFAIK the tools > are backward compatible, at least in case of plain SQL comm

[ADMIN] pg_dump, pg_restore from 9.2 on 8.4 server

2013-07-03 Thread Jiří Hlinka
Hi All, I have a 8.4 server and I'd like to use --section parameter of pg_dump and pg_restore, which is available only in 9.2. 1. Is it, in general, safe to use 9.2 tools on 8.4 server? AFAIK the tools are backward compatible, at least in case of plain SQL commands it should be compatible, right

Re: [ADMIN] pg_dump and restore

2013-01-11 Thread Kevin Grittner
suhas.basavaraj12 wrote: > We will be dumping data from version 9.0 and restore to 9.1. That should work fine, as long as use use pg_dump from version 9.1 to dump the 9.0 database. -Kevin -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: h

Re: [ADMIN] pg_dump and restore

2013-01-10 Thread suhas.basavaraj12
Thanks for the info .We will be dumping data from version 9.0 and restore to 9.1. Rgrds Suhas -- View this message in context: http://postgresql.1045698.n5.nabble.com/pg-dump-and-restore-tp5739350p5739517.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com. -- Sent vi

Re: [ADMIN] pg_dump and restore

2013-01-09 Thread Birta Levente
On 10/01/2013 09:47, Arun Padule wrote: Hi, Yes you a dump data from one version of postgres to the other version. But later you will facing issue with casting of data type's. As documentaion said, you need to make a dump with pg_dump from the "destination" version. But if you want to migrat

Re: [ADMIN] pg_dump and restore

2013-01-09 Thread Arun Padule
Hi, Yes you a dump data from one version of postgres to the other version. But later you will facing issue with casting of data type's. e,g where '5' = 5; works in 8.0 version But same where clause through's a data type miss match on 9.1 version. These is just a one example, there might be man

[ADMIN] pg_dump and restore

2013-01-09 Thread suhas.basavaraj12
Hi, Can we dump data from any postrgres version and restore it to any version of postgres ? If not , can anyone tell which version of data is compatible to which version ? Rgrds Suhas.B -- View this message in context: http://postgresql.1045698.n5.nabble.com/pg-dump-and-restore-tp5739350.h

Re: [ADMIN] pg_dump out of memory

2012-10-17 Thread Tom Lane
Neil Morgan writes: > I am running a PostgreSQL 8.3 server (not my choice, would prefer 9.1) but I > am experiencing memory issues when using pg_dump. 8.3.what? > Does anyone have any ideas please? For starters, turn on log_statements so you can see what query is triggering this. It'd be even

[ADMIN] pg_dump out of memory

2012-10-17 Thread Neil Morgan
Dear All, I am running a PostgreSQL 8.3 server (not my choice, would prefer 9.1) but I am experiencing memory issues when using pg_dump. I have looked on the forums for memory issues, and can say that the data is not corrupt. We are running a VM with RHEL6, 4GB RAM, 2CPU and 80GB HDD Does any

Re: [ADMIN] pg_dump on Postgres 9.1

2012-08-03 Thread Tom Lane
Alanoly Andrews writes: > On this issue, instead of going for a newer version of xlc, as suggested, I > opted to get a newer version of the Postgres source code, 9.1.4. After > compiling it with the same xlc version, I found that pg_dump works as > expected. So, the problem appears to be somewh

Re: [ADMIN] pg_dump on Postgres 9.1

2012-08-01 Thread Alanoly Andrews
least for binaries created from it for AIX (6.1). Regards. Alanoly. -Original Message- From: Tom Lane [mailto:t...@sss.pgh.pa.us] Sent: Friday, July 27, 2012 12:13 PM To: Alanoly Andrews Cc: 'pgsql-admin@postgresql.org' Subject: Re: [ADMIN] pg_dump on Postgres 9.1 Alano

Re: [ADMIN] pg_dump on Postgres 9.1

2012-07-27 Thread Tom Lane
Alanoly Andrews writes: > Is there any reported bug with pg_dump in Postgres 9.1, on AIX ? The > following command hangs for "ever" and has to be interrupted. It creates a > zero-length file. We had a recent report of strange server-side behavior on AIX that went away after rebuilding with a ne

[ADMIN] pg_dump on Postgres 9.1

2012-07-27 Thread Alanoly Andrews
Hello, Is there any reported bug with pg_dump in Postgres 9.1, on AIX ? The following command hangs for "ever" and has to be interrupted. It creates a zero-length file. pg_dump -Fc alan1 > alan1.dmp If I run the command in the verbose mode, I see that it stops at "saving database definition

[ADMIN] PG_DUMP producing lots of WAL archive logs

2012-05-26 Thread Adam Fuchs
I am seeing, what appears to me, strange behavior during PG_DUMP backups. These pg_dump backups have been running for weeks with no issue, and run very quickly. Here is the previous days run from the log: 2012-05-23 07:10:04 PDT::@:[14715]: LOG: checkpoint starting: time 2012-05-23 07:10:04 PD

FW: [ADMIN] pg_dump: schema with OID 2200 does not exist

2012-05-14 Thread Elizandro Gallegos
Hello Please can I be removed from the mailing list, and I receive many emails like this thanks ЄLIZANDЯO GALLEGOS V. > Date: Wed, 9 May 2012 09:58:45 -0400 > From: chander.gane...@gmail.com > To: pgsql-admin@postgresql.org > Subject: [ADMIN] pg_dump:

Re: FW: [ADMIN] pg_dump: schema with OID 2200 does not exist

2012-05-09 Thread Kevin Grittner
Elizandro Gallegos wrote: > Please can I be removed from the mailing list The answer was in the email to which you responded. Did you have trouble using the referenced page? >> To make changes to your subscription: >> http://www.postgresql.org/mailpref/pgsql-admin -Kevin -- Sent via pg

FW: [ADMIN] pg_dump: schema with OID 2200 does not exist

2012-05-09 Thread Elizandro Gallegos
Hello Please can I be removed from the mailing list, and I receive many emails like this thanks ЄLIZANDЯO GALLEGOS V. > Date: Wed, 9 May 2012 09:58:45 -0400 > From: chander.gane...@gmail.com > To: pgsql-admin@postgresql.org > Subject: [ADMIN] pg_dump: sch

Re: [ADMIN] pg_dump: schema with OID 2200 does not exist

2012-05-09 Thread Tom Lane
Chander Ganesan writes: > I'm running into a weird issue with PostgreSQL 9.1.3 and PostGIS 2.0 > when trying to dump a table - no matter what table I try to dump in this > database, I find that I get the same error, as evidenced below (scroll > down for relevant data/error output.) 2200 would

[ADMIN] pg_dump: schema with OID 2200 does not exist

2012-05-09 Thread Chander Ganesan
Hi All, I'm running into a weird issue with PostgreSQL 9.1.3 and PostGIS 2.0 when trying to dump a table - no matter what table I try to dump in this database, I find that I get the same error, as evidenced below (scroll down for relevant data/error output.) Any ideas as to what might be the

[ADMIN] pg_dump: aborting because of server version mismatch

2012-05-03 Thread Mitesh Shah
Hi, I am trying to create a daily backup cron script but it fails with an error as below: Any pointers to resolve this will be greatly appreciated. Thanks, Mitesh Shah mitesh.s...@stripes39.com *(1) Error:* bash-3.2$ sh pg_backup_rotated_orig.sh Making backup directory in /Users/miteshshah/Docum

Re: [ADMIN] pg_dump: schema with OID 145167 does not exist

2012-04-25 Thread Lukasz Brodziak
Hi, Once I had the same problem with not existing schema. In my case removing all the references to the schema worked fine and I had no problems with the db ever since. It wa PG 8.2.1 and since the operation we migrated all the DBs including the one to 9.0.6 and everything works fine. Hope this h

[ADMIN] pg_dump: schema with OID 145167 does not exist

2012-03-23 Thread Paul Wouters
Hello, We have some problems using pg_dump. We get the following error: pg_dump: schema with OID 145167 does not exist I found one entry in the pg_type and another one in the pg_class. I was able to remove the one in the pg_class but when we try to remove the row in the pg_type, I get an

Re: [ADMIN] pg_dump: schema with OID 145167 does not exist

2012-03-22 Thread Kevin Grittner
"Paul Wouters" wrote: > We have some problems using pg_dump. We get the following error: > > pg_dump: schema with OID 145167 does not exist Make sure you have a copy of the entire PostgreSQL data directory tree before trying to fix corruption. > In the table pg_depend I have also e referenc

[ADMIN] pg_dump: schema with OID 145167 does not exist

2012-03-22 Thread Paul Wouters
Hello, We have some problems using pg_dump. We get the following error: pg_dump: schema with OID 145167 does not exist I found one entry in the pg_type and another one in the pg_class. I was able to remove the one in the pg_class but when we try to remove the row in the pg_type, I get an

Re: [ADMIN] pg_dump : no tables were found.

2012-03-06 Thread Julien Rouhaud
On Tue, Mar 6, 2012 at 7:22 AM, Piyush Lenka wrote: > Hi, > > I m trying to take backup of data of a particular table using pg_dump. > I used double quotes for table name but output is : > pg_dump : no tables were found. > > Command used : > -h localhost -p 5432 -U postgres -W -F p -a -t '"TestTa

[ADMIN] pg_dump : no tables were found.

2012-03-06 Thread Piyush Lenka
Hi, I m trying to take backup of data of a particular table using pg_dump. I used double quotes for table name but output is : pg_dump : no tables were found. Command used : -h localhost -p 5432 -U postgres -W -F p -a -t '"TestTable"' -f DbBackup/BackupTableActions.sql TestDataBase This problem

Re: [ADMIN] pg_dump from 8.4 to 8.3

2011-11-07 Thread Kevin Grittner
Kieren Scott wrote: > I need to migrate some data (a few GB's) from an 8.4 database to > an 8.3 database using pg_dump. What is the best way to acheive > this? This is always a little tricky because you may have objects in your later-release database which can't be represented in the older rel

[ADMIN] pg_dump from 8.4 to 8.3

2011-11-07 Thread Kieren Scott
Hi, I need to migrate some data (a few GB's) from an 8.4 database to an 8.3 database using pg_dump. What is the best way to acheive this? E.g. Run pg_dump from the 8.3 host pointing it at the 8.4 host and include the version mismatch parameter? Or, run pg_dump on the 8.4 host, then zip the 8.4

Re: [ADMIN] pg_dump: Error message from server: ERROR: out of shared memory on one system works fine on another

2011-08-08 Thread jtkells
Tom, That did the trick. I made a bad assumption that the shared_memory was causing the problem and not the other way around. I set it up to 256, last attempt was 128 and it still failed, not sure what value would have given me success (128 - 256) but it needed quite a bit more. Thanks for your

Re: [ADMIN] pg_dump: Error message from server: ERROR: out of shared memory on one system works fine on another

2011-08-07 Thread Tom Lane
jtke...@verizon.net writes: > I am having a problem running "pg_dump -s database "on one system > while it runs fine on another system. > when I run the following dump on the Ubuntu system I get : > pg_dump -s DB >/tmp/DB_schema_only.dmp > pg_dump: WARNING: out of shared memory > pg_dump: SQL

[ADMIN] pg_dump: Error message from server: ERROR: out of shared memory on one system works fine on another

2011-08-07 Thread jtkells
I am having a problem running "pg_dump -s database "on one system while it runs fine on another system. Both databases are nearly identical (minor changes to schemas and tables) On the older system it is a redhat x.x (32 bit) 12GiB memory running postgresql 8.4.3 (32 bit) On the newer system it is

Re: [ADMIN] pg_dump and drop table if exists statement

2011-06-17 Thread Nicolas Thauvin
On 13/06/2011 09:56, Ibrahim Harrani wrote: > Hi, > > I am using PostgreSQL 9.0 I would like to dump some tables and all > functions,triggers on the database. > If I drop with pg_dump -c parameter, it removes public schema as > well. With -c, the drop of the public schema does not cascade,

[ADMIN] pg_dump and drop table if exists statement

2011-06-13 Thread Ibrahim Harrani
Hi, I am using PostgreSQL 9.0 I would like to dump some tables and all functions,triggers on the database. If I drop with pg_dump -c parameter, it removes public schema as well. pg_dump -C parameter output has create table but I can't restore this output directly(Because the tables are already

Re: [ADMIN] pg_dump not working

2011-02-15 Thread Kevin Grittner
Bineeta Guha wrote: > When I used pg_dump then after few minutes it shows error > > This probably means the server terminated abnormally > before or while processing the request. pg_dump: The command was: > FETCH 100 FROM _pg_dump_cursor > > Before 2 month backup running normal. But few

[ADMIN] pg_dump not working

2011-02-14 Thread Bineeta Guha
When I used pg_dump then after few minutes it shows error This probably means the server terminated abnormally before or while processing the request. pg_dump: The command was: FETCH 100 FROM _pg_dump_cursor Before 2 month backup running normal. But few month Backup only done 869Mb after

Re: [ADMIN] pg_dump and XID limit

2010-11-24 Thread Tom Lane
Elliot Chance writes: > Wouldn't that mean at some point it would be advisable to be using 64bit > transaction IDs? Or would that change too much of the codebase? It's not so much "too much of the codebase" as "nobody wants another 8 bytes added to per-row overhead". Holding a transaction open

Re: [ADMIN] pg_dump and XID limit

2010-11-24 Thread Kevin Grittner
Vladimir Rusinov wrote: > I think it would be advisable not to use pg_dump on such load. Agreed. > Use fs- or storage-level snapshots instead. Or PITR backup techniques. Or hot/warm standby. Or streaming replication. Or one of the many good trigger-based replication products. Just abou

Re: [ADMIN] pg_dump and XID limit

2010-11-24 Thread Vladimir Rusinov
On Wed, Nov 24, 2010 at 12:59 PM, Elliot Chance wrote: > > Elliot Chance writes: > >> This is a hypothetical problem but not an impossible situation. Just > curious about what would happen. > > > >> Lets say you have an OLTP server that keeps very busy on a large > database. In this large databas

Re: [ADMIN] pg_dump and XID limit

2010-11-24 Thread Elliot Chance
On 24/11/2010, at 5:07 PM, Tom Lane wrote: > Elliot Chance writes: >> This is a hypothetical problem but not an impossible situation. Just curious >> about what would happen. > >> Lets say you have an OLTP server that keeps very busy on a large database. >> In this large database you have one

Re: [ADMIN] pg_dump and XID limit

2010-11-23 Thread Tom Lane
Elliot Chance writes: > This is a hypothetical problem but not an impossible situation. Just curious > about what would happen. > Lets say you have an OLTP server that keeps very busy on a large database. In > this large database you have one or more tables on super fast storage like a > fusio

[ADMIN] pg_dump and XID limit

2010-11-23 Thread Elliot Chance
Hi, This is a hypothetical problem but not an impossible situation. Just curious about what would happen. Lets say you have an OLTP server that keeps very busy on a large database. In this large database you have one or more tables on super fast storage like a fusion IO card which is handling

Re: [ADMIN] pg_dump/restore problems

2010-10-26 Thread Bob Lunney
Glen, Did you drop the indexes prior to the restore?  If not, try doing so and recreating the indexes afterwards.  That will also speed up the data load. Bob Lunney --- On Mon, 2/15/10, Glen Brown wrote: From: Glen Brown Subject: [ADMIN] pg_dump/restore problems To: pgsql-admin@postgresql.org

Re: [ADMIN] pg_dump and table exclusion: multiple patterns

2010-09-28 Thread Vibhor Kumar
On Sep 28, 2010, at 6:26 PM, Marc Mamin wrote: > But if I prefix my pattern with the schema name, then I finally get the > expected result: > >pg_dump -i -v -nXXX -T 'XXX.*2008*' -T ' XXX.*2009*' -T ' XXX.*201001*' -T > XXX.'*201002*' . > > > seems that the use of the -n flag require

Re: [ADMIN] pg_dump and table exclusion: multiple patterns

2010-09-28 Thread Vibhor Kumar
On Sep 28, 2010, at 6:26 PM, Marc Mamin wrote: > But if I prefix my pattern with the schema name, then I finally get the > expected result: > >pg_dump -i -v -nXXX -T 'XXX.*2008*' -T ' XXX.*2009*' -T ' XXX.*201001*' -T > XXX.'*201002*' . > > > seems that the use of the -n flag require

Re: [ADMIN] pg_dump and table exclusion: multiple patterns

2010-09-28 Thread Marc Mamin
here is a strange behaviour: I did first simplify my syntax with multiples -T flags: pg_dump -i -v -nXXX -T '*2008*' -T '*2009*' -T '*201001*' -T '*201002*' . still not working. But if I prefix my pattern with the schema name, then I finally get the expected result: pg_dump -i -

[ADMIN] pg_dump and table exclusion: multiple patterns

2010-09-28 Thread Marc Mamin
hello, I'm trying to export a schema with multiple table exclusions: pg_dump -i -v -nXXX -T '*20((08[0-9]+)|(09[0-9]+)|(100[1-8][0-9]+)|(1009[0-1][0-9]+))' unfortunately, the filter does not work as expected.(no table at all are excluded) when I try the same patte

Re: [ADMIN] pg_dump fails with "ERROR: cache lookup failed for index 1531353157"

2010-09-24 Thread Lukasz Brodziak
One solution is to run vacuum and reindex and the db before pg_dump. The second thing to do (it's risky I admit) is to create a file with this name and filling it with zeros. The pg_dump should run without problems. 2010/9/24 Benjamin Arai, Ph.D. : > The file does not exist. What does that mean? >

Re: [ADMIN] pg_dump fails with "ERROR: cache lookup failed for index 1531353157"

2010-09-23 Thread Lukasz Brodziak
First thing I would do is checking wether the relation exists (e.g. by checking pg_class for the relfilenode of the relation and then finding it physically in PGDATA folder) or checking wether the file is corrupted for example by finding the name and type of the relation and trying to make some man

[ADMIN] pg_dump fails with "ERROR: cache lookup failed for index 1531353157"

2010-09-23 Thread Benjamin Arai, Ph.D.
Hello, The server is still running but pg_dumps output the following error. What should I do? Thanks, Benjamin OUTPUT: pg_dump: SQL command failed pg_dump: Error message from server: ERROR: cache lookup failed for index 1531353157 pg_dump: The command was: SELECT t.tableoid, t.oid, t.relname a

Re: [ADMIN] pg_dump fails with the following error: "ERROR: cache lookup failed for index 1531353157"

2010-09-21 Thread Tom Lane
"Benjamin Arai, Ph.D." writes: > The server is still running but pg_dumps output the following error. What > should I do? Try reindexing pg_index in whichever database is giving trouble. Depending on what PG version you are using (which is something that should ALWAYS be mentioned in any kind of

Re: [ADMIN] pg_dump fails with the following error: "ERROR: cache lookup failed for index 1531353157"

2010-09-21 Thread Benjamin Arai, Ph.D.
Is the index 1531353157? To be clear, I would just run: REINDEX INDEX 1531353157 Thanks, Benjamin On Tue, Sep 21, 2010 at 1:57 PM, Joshua D. Drake wrote: > On Tue, 2010-09-21 at 13:32 -0700, Benjamin Arai, Ph.D. wrote: > > Hello, > > > > The server is still running but pg_dumps output the follo

Re: [ADMIN] pg_dump fails with the following error: "ERROR: cache lookup failed for index 1531353157"

2010-09-21 Thread Joshua D. Drake
On Tue, 2010-09-21 at 13:32 -0700, Benjamin Arai, Ph.D. wrote: > Hello, > > The server is still running but pg_dumps output the following error. > What should I do? Try reindexing the index. Joshua D. Drake -- PostgreSQL.org Major Contributor Command Prompt, Inc: http://www.commandprompt.com

[ADMIN] pg_dump fails with the following error: "ERROR: cache lookup failed for index 1531353157"

2010-09-21 Thread Benjamin Arai, Ph.D.
Hello, The server is still running but pg_dumps output the following error. What should I do? Thanks, Benjamin OUTPUT: pg_dump: SQL command failed pg_dump: Error message from server: ERROR: cache lookup failed for index 1531353157 pg_dump: The command was: SELECT t.tableoid, t.oid, t.relname a

Re: [ADMIN] pg_dump: Error message from server: ERROR: missing chunk number

2010-06-15 Thread Silvio Brandani
Kevin Grittner ha scritto: Silvio Brandani wrote: We have a standby database During pg_dump Hmm... I just noticed that word "standby" in there. Can you elaborate on what you mean by that? -Kevin It means it is an istance refreshed (via rsync) from another istanc

Re: [ADMIN] pg_dump: Error message from server: ERROR: missing chunk number

2010-06-15 Thread Silvio Brandani
Kevin Grittner ha scritto: Silvio Brandani wrote: We have a standby database During pg_dump Hmm... I just noticed that word "standby" in there. Can you elaborate on what you mean by that? -Kevin It means it is an istance refreshed (via rsync) from another istanc

Re: [ADMIN] pg_dump: Error message from server: ERROR: missing chunk number

2010-06-15 Thread Kevin Grittner
Silvio Brandani wrote: > We have a standby database > During pg_dump Hmm... I just noticed that word "standby" in there. Can you elaborate on what you mean by that? -Kevin -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www

Re: [ADMIN] pg_dump: Error message from server: ERROR: missing chunk number

2010-06-15 Thread Kevin Grittner
Silvio Brandani wrote: > We have a standby database version postgres 8.3.1 on linux . You should seriously consider upgrading to a more recent 8.3 bug fix release. The most current is now 8.3.11. Please read this: http://www.postgresql.org/support/versioning There was a bug fix related t

[ADMIN] pg_dump: Error message from server: ERROR: missing chunk number

2010-06-15 Thread Silvio Brandani
We have a standby database version postgres 8.3.1 on linux . During pg_dump we get the error: -- pg_dump: SQL command failed -- pg_dump: Error message from server: ERROR: missing chunk number 0 for toast value 254723406 -- pg_dump: The command was: COPY helpdesk.attachments_data (id, filedata,

Re: [ADMIN] pg_dump errors

2010-06-03 Thread Kevin Kempter
On Thursday 03 June 2010 11:45, Tom Lane wrote: > Kevin Kempter writes: > > On Thursday 03 June 2010 11:18, Tom Lane wrote: > >> Bizarre ... that command really oughtn't be invoking any non-builtin > >> operator, but the OID is too high for a builtin. What do you get from > >> "select 33639::rego

Re: [ADMIN] pg_dump errors

2010-06-03 Thread Tom Lane
Kevin Kempter writes: > On Thursday 03 June 2010 11:18, Tom Lane wrote: >> Bizarre ... that command really oughtn't be invoking any non-builtin >> operator, but the OID is too high for a builtin. What do you get from >> "select 33639::regoperator"? > postgres=# select 33639::regoperator > postgr

Re: [ADMIN] pg_dump errors

2010-06-03 Thread Kevin Kempter
On Thursday 03 June 2010 11:18, Tom Lane wrote: > Kevin Kempter writes: > > pg_dump: Error message from server: ERROR: could not find hash function > > for hash operator 33639 > > Bizarre ... that command really oughtn't be invoking any non-builtin > operator, but the OID is too high for a builti

Re: [ADMIN] pg_dump errors

2010-06-03 Thread Tom Lane
Kevin Kempter writes: > pg_dump: Error message from server: ERROR: could not find hash function for > hash operator 33639 Bizarre ... that command really oughtn't be invoking any non-builtin operator, but the OID is too high for a builtin. What do you get from "select 33639::regoperator"?

[ADMIN] pg_dump errors

2010-06-03 Thread Kevin Kempter
Hi all; I'm seeing these errors when running a pg_dump of the postgres database: Running: [pg_dump --schema-only postgres > postgres.ddl] pg_dump: SQL command failed pg_dump: Error message from server: ERROR: could not find hash function for hash operator 33639 pg_dump: The command was: SELECT

Re: [ADMIN] PG_dump a large database fails

2010-06-03 Thread Kevin Grittner
fida aljounaidi wrote: > For migration purpose (from 8.2 to 8.4) 8.2.what? to 8.4.what? > (this is my dump command "pg_dump mydb | gzip > /var/dump/db.gz" Using pg_dump from which version? > It fails whith this error message: > pg_dump: la commande SQL a échoué > pg_dump: Message d'erreu

[ADMIN] PG_dump a large database fails

2010-06-03 Thread fida aljounaidi
Hi For migration purpose (from 8.2 to 8.4), i'm trying to make a dump of a 16 GB database. (this is my dump command "pg_dump mydb | gzip > /var/dump/db.gz" It fails whith this error message: pg_dump: la commande SQL a échoué pg_dump: Message d'erreur du serveur : ERREUR: invalid memory alloc req

Re: [ADMIN] pg_dump: Error message from server: ERROR: compressed data is corrupt

2010-04-27 Thread Achilleas Mantzios
Στις Friday 23 April 2010 17:05:46 ο/η Tom Lane έγραψε: > Achilleas Mantzios writes: > > Then i did > > > # CREATE TABLE mail_entity2 AS SELECT * FROM mail_entity; > > > which went fine > > > but, for some crazy reason, pg_dump on mail_entity2 also results to an > > error: > > srv:~> pg_dump -

Re: [ADMIN] pg_dump: Error message from server: ERROR: compressed data is corrupt

2010-04-23 Thread Tom Lane
Achilleas Mantzios writes: > Then i did > # CREATE TABLE mail_entity2 AS SELECT * FROM mail_entity; > which went fine > but, for some crazy reason, pg_dump on mail_entity2 also results to an error: > srv:~> pg_dump -t mail_entity2 > /dev/null > pg_dump: SQL command failed > pg_dump: Error messa

[ADMIN] pg_dump: Error message from server: ERROR: compressed data is corrupt

2010-04-23 Thread Achilleas Mantzios
Hello, just coming back from a rescue marathon on this remote server i was telling you. As i said, the last problem was while doing a pg_dump dynacom (dynacom is my db'd name) i kept getting pg_dump: SQL command failed pg_dump: Error message from server: ERROR: compressed data is corrupt pg_du

Re: [ADMIN] pg_dump from one server to another using SSL

2010-03-18 Thread Tom Lane
"Campbell, Lance" writes: > How do you tell pg_dump to use SSL when loading data from one server > into another server? It will likely do so by default, but if you want to be sure you can do export PGSSLMODE=require before starting pg_dump. See http://www.postgresql.org/docs/8.4/static/

[ADMIN] pg_dump from one server to another using SSL

2010-03-18 Thread Campbell, Lance
PostgreSQL 8.4.3 Assume you have two servers running PostgreSQL with SSL on. How do you tell pg_dump to use SSL when loading data from one server into another server? Thanks, Lance Campbell Software Architect/DBA/Project Manager Web Services at Public Affairs 217-333-0382

Re: [ADMIN] pg_dump / pg_restore with Large Objects from 32-bit to 64-bit

2010-03-15 Thread Tom Lane
"Matt Janssen" writes: > When migrating our Postgres databases from 32 to 64-bit systems, including > large binary objects, how well will this work? > 32-bit server) pg_dump --format=c --blobs --file=backup.pg mydb > 64-bit server) pg_restore -d mydb backup.pg Should be fine; but remember that o

[ADMIN] pg_dump / pg_restore with Large Objects from 32-bit to 64-bit

2010-03-15 Thread Matt Janssen
When migrating our Postgres databases from 32 to 64-bit systems, including large binary objects, how well will this work? 32-bit server) pg_dump --format=c --blobs --file=backup.pg mydb 64-bit server) pg_restore -d mydb backup.pg I'm hoping that PG's compressed custom archive format is

[ADMIN] pg_dump: aborting because of version mismatch

2010-02-23 Thread Net Tree Inc.
>>I am keep getting error of mismatch of pg_dump version. how should one dealing with different version of pg_dump normally? C:\Program Files\pgAdmin III\1.8\pg_dump.exe -h 192.168.222.129 -p 5433 -U postgres -F c -b -v -f "C:\Documents and Settings\steven\Desktop\template.backup" template_postgis

Re: [ADMIN] pg_dump/restore problems

2010-02-20 Thread Scott Marlowe
On Sat, Feb 20, 2010 at 6:59 PM, Kevin Grittner wrote: > Glen Brown  wrote: > >> I am using Ubuntu 8LTS on both systems. How can tell where the >> space is going? > > Maybe someone has a more sophisticated way, but I'd be poking around > with "du -shx" requests against the contents of various dire

Re: [ADMIN] pg_dump/restore problems

2010-02-20 Thread Kevin Grittner
Glen Brown wrote: > I am using Ubuntu 8LTS on both systems. How can tell where the > space is going? Maybe someone has a more sophisticated way, but I'd be poking around with "du -shx" requests against the contents of various directories during the run. Maybe run "vmstat 1" in another shell,

Re: [ADMIN] pg_dump/restore problems

2010-02-20 Thread Glen Brown
I am using Ubuntu 8LTS on both systems. How can tell where the space is going? thanks for the help -glen Glen Brown On Sat, Feb 20, 2010 at 9:52 AM, Kevin Grittner wrote: > Glen Brown wrote: > > > When I dump this table using pg_dump -Fc it creates a 15 gb file. I > > am trying to restore in

Re: [ADMIN] pg_dump/restore problems

2010-02-20 Thread Kevin Grittner
Glen Brown wrote: > When I dump this table using pg_dump -Fc it creates a 15 gb file. I > am trying to restore in into a database that has 100gb of free disk > space and it consumes it all and fails to finish the restore. What is the platform? (I remember having problems with large file handl

Re: [ADMIN] PG_DUMP backup

2010-02-16 Thread Renato Oliveira
red office address: 29 Station Road, Shepreth, CAMBS SG8 6GB UK -Original Message- From: Josh Kupershmidt [mailto:schmi...@gmail.com] Sent: 12 February 2010 15:30 To: Renato Oliveira Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] PG_DUMP backup Importance: High On Feb 12, 2010,

Re: [ADMIN] PG_DUMP backup

2010-02-16 Thread Renato Oliveira
February 2010 19:31 To: Renato Oliveira; pgsql-admin@postgresql.org Subject: RE: [ADMIN] PG_DUMP backup Backing up a 170GB in 28 hours definitely doesn't sound right and I almost certain has nothing to do with pg_dump, but rather your hardware, ie, server, disk, etc. with a 170GB, backup should be

[ADMIN] pg_dump/restore problems

2010-02-15 Thread Glen Brown
I am not sure where I should post this but I am running into problems trying to restore a large table. I am running 8.4.1 on all servers. The table is about 25gb in size and most of that is toasted. It has about 2.5m records. When I dump this table using pg_dump -Fc it creates a 15 gb file. I am tr

Re: [ADMIN] PG_DUMP backup

2010-02-12 Thread Tomeh, Husam
gards, Husam -Original Message- From: pgsql-admin-ow...@postgresql.org [mailto:pgsql-admin-ow...@postgresql.org] On Behalf Of Renato Oliveira Sent: Friday, February 12, 2010 1:59 AM To: pgsql-admin@postgresql.org Subject: [ADMIN] PG_DUMP backup Importance: High Dear all, I have a s

Re: [ADMIN] PG_DUMP backup

2010-02-12 Thread Renato Oliveira
England, registration number 658133 Registered office address: 29 Station Road, Shepreth, CAMBS SG8 6GB UK -Original Message- From: Josh Kupershmidt [mailto:schmi...@gmail.com] Sent: 12 February 2010 15:30 To: Renato Oliveira Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] PG_DUMP

Re: [ADMIN] PG_DUMP backup

2010-02-12 Thread Josh Kupershmidt
On Feb 12, 2010, at 4:58 AM, Renato Oliveira wrote: > Dear all, > > I have a server running 8.2.4 and has a database 170GB in size. > Currently I am backing it up using pg_dump and it takes around 28 hours, > sadly. That's suspiciously slow for a pg_dump alone. I have a ~168 GB database which

[ADMIN] PG_DUMP backup

2010-02-12 Thread Renato Oliveira
Dear all, I have a server running 8.2.4 and has a database 170GB in size. Currently I am backing it up using pg_dump and it takes around 28 hours, sadly. I was asked to check and compare the newly created DUMP file to the live database and compare records. I personally cannot see an easy or quic

Re: [ADMIN] pg_dump custom format and pigz

2009-10-24 Thread Marc Mamin
arze Sent: Friday, October 23, 2009 4:25 PM To: pgsql-admin@postgresql.org Subject: Re: [ADMIN] pg_dump custom format and pigz Hi Marc, On Fri, Oct 23, 2009 at 03:52:16PM +0200, Marc Mamin wrote: > > You might add pigz as a post-processing step and disabling compression in > > pg_dum

Re: [ADMIN] pg_dump custom format and pigz

2009-10-23 Thread Tino Schwarze
Hi Marc, On Fri, Oct 23, 2009 at 03:52:16PM +0200, Marc Mamin wrote: > > You might add pigz as a post-processing step and disabling compression in > > pg_dump. > > The problem with this solution is that it make it necessary to > decompress the dump entirely before using pg_restore (or did I mis

Re: [ADMIN] pg_dump custom format and pigz

2009-10-23 Thread Marc Mamin
f Tino Schwarze Sent: Friday, October 23, 2009 3:11 PM To: pgsql-admin@postgresql.org Subject: Re: [ADMIN] pg_dump custom format and pigz Hi Marc, On Fri, Oct 23, 2009 at 02:48:58PM +0200, Marc Mamin wrote: > I'm using pg_dump intensively, and until now using the plaintext > format which

Re: [ADMIN] pg_dump custom format and pigz

2009-10-23 Thread Tino Schwarze
Hi Marc, On Fri, Oct 23, 2009 at 02:48:58PM +0200, Marc Mamin wrote: > I'm using pg_dump intensively, and until now using the plaintext format > which allows me to pipe the output to pigz (http://zlib.net/pigz/) > This is the fastest way I've found to generate compressed backups. > > (These back

[ADMIN] pg_dump custom format and pigz

2009-10-23 Thread Marc Mamin
Hello, I'm using pg_dump intensively, and until now using the plaintext format which allows me to pipe the output to pigz (http://zlib.net/pigz/) This is the fastest way I've found to generate compressed backups. (These backups are very rarely used) I would like to switch to the custom format i

Re: [ADMIN] pg_dump dumping out some irrelevant grants

2009-07-15 Thread Tom Lane
Chris Browne writes: > I'm finding that pg_dumps are dumping out, right near the end, the > following sequence of grants that are causing our QA folk a little bit > of concern: > REVOKE ALL ON SCHEMA public FROM PUBLIC; > REVOKE ALL ON SCHEMA public FROM chris; > GRANT ALL ON SCHEMA public TO chr

[ADMIN] pg_dump dumping out some irrelevant grants

2009-07-15 Thread Chris Browne
I'm finding that pg_dumps are dumping out, right near the end, the following sequence of grants that are causing our QA folk a little bit of concern: REVOKE ALL ON SCHEMA public FROM PUBLIC; REVOKE ALL ON SCHEMA public FROM chris; GRANT ALL ON SCHEMA public TO chris; GRANT ALL ON SCHEMA public TO

Re: [ADMIN] pg_dump exclude tables

2009-06-19 Thread Tom Lane
"Mary Sipple" writes: > I'm using postgresql 8.2.3 and am trying to run pg_dump with some tables > excluded. It seems that no matter what I try pg_dump core dumps on me -- > "Segmentation Fault (core dumped)". The -t flag works fine but -T does not. > Even excluding just one table gives me the seg

[ADMIN] pg_dump exclude tables

2009-06-19 Thread Mary Sipple
I'm using postgresql 8.2.3 and am trying to run pg_dump with some tables excluded. It seems that no matter what I try pg_dump core dumps on me -- "Segmentation Fault (core dumped)". The -t flag works fine but -T does not. Even excluding just one table gives me the segmentation fault. This works fi

Re: [ADMIN] pg_dump not appending sequence to default values

2009-06-11 Thread Tom Lane
Andy Shellam writes: > I've just re-created this using the following steps on a blank database: > 1. Create a new database using a role with a default search path of > "$user", public. > 2. Create a schema in that database (myschema) > 3. Create a sequence in the test schema (mysequence) > 4. Cr

Re: [ADMIN] pg_dump not appending sequence to default values

2009-06-11 Thread Andy Shellam
No, it isn't. If the search_path was "product" when the table definition was loaded, No it wasn't. When the table was initially created (from scratch not from the dump) the search path was the default of "$user", public. I've just re-created this using the following steps on a blank data

Re: [ADMIN] pg_dump not appending sequence to default values

2009-06-11 Thread Tom Lane
Andy Shellam writes: > Yes, that's true - it's in the search path because (so I believe) > pg_dump is adding a "SET search_path..." line before it carries out the > commands in the schema, which works when the dump is restored, but when > running as a normal user, the search path is the default

Re: [ADMIN] pg_dump not appending sequence to default values

2009-06-11 Thread Andy Shellam
Hi Tom The reason it's printed as just 'tax_id' is that that relation should be first in the search_path at this point. Yes, that's true - it's in the search path because (so I believe) pg_dump is adding a "SET search_path..." line before it carries out the commands in the schema, which wor

Re: [ADMIN] pg_dump not appending sequence to default values

2009-06-11 Thread Tom Lane
Andy Shellam writes: > When I pg_dump the schema, the resulting SQL is: > ... > CREATE SCHEMA product; > ... > SET search_path = product, pg_catalog; > ... > CREATE SEQUENCE tax_id > INCREMENT BY 1 > NO MAXVALUE > NO MINVALUE > CACHE 1; > ... > CREATE TABLE tax ( > id smallint

[ADMIN] pg_dump not appending sequence to default values

2009-06-11 Thread Andy Shellam
I've come across an issue with pg_dump from 8.3.7 (running on Windows.) I'm using pg_dump to dump the schema only of the database for a system I'm currently displaying. The other day I had to re-create the database using the latest dump, and for a lot of the tables I now get the error "relati

  1   2   3   4   5   >