Re: [PERFORM] PG 9 adminstrations

2011-09-21 Thread Shaun Thomas
On 09/20/2011 11:29 PM, Hany ABOU-GHOURY wrote: Thanks but...did not work different error though ERROR: relation "history" already exists ERROR: relation "idx_history_pagegroupid" already exists ERROR: constraint "cdocumentid" for relation "history" already exists Clearly the history table al

Re: [PERFORM] PG 9 adminstrations

2011-09-20 Thread Hany ABOU-GHOURY
Thanks but...did not work different error though ERROR: relation "history" already exists ERROR: relation "idx_history_pagegroupid" already exists ERROR: constraint "cdocumentid" for relation "history" already exists On Wed, Sep 21, 2011 at 4:16 PM, Derrick Rice wrote: > You don't need "-t

Re: [PERFORM] PG 9 adminstrations

2011-09-20 Thread Derrick Rice
You don't need "-t history" on the psql part. It doesn't do what you think it does, and it's reading the next part ("history") as the database name. try: pg_dump -h -U postgres -t history DATABASENAME | psql -h hostname2 -U postgres DATABASENAME > db.sql Derrick On Tue, Sep 20, 2011 at 11:57

[PERFORM] PG 9 adminstrations

2011-09-20 Thread Hany ABOU-GHOURY
Hi all, I am trying to update / refresh one table (history) only from prod. database to my test environment database my query as follows: pg_dump -h -U postgres -t history DATABASENAME | psql -h hostname2 -U postgres -t history DATABASENAME > db.sql but I am getting the following error psql: F