From: | Hany ABOU-GHOURY <hghoury(at)gmail(dot)com> |
---|---|
To: | Derrick Rice <derrick(dot)rice(at)gmail(dot)com> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: PG 9 adminstrations |
Date: | 2011-09-21 04:29:39 |
Message-ID: | CAEjHQvnosXN+RJ5567DynPk+y0-n5fOqcSv0GnjEcBBC=0w2mA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice pgsql-performance |
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 <derrick(dot)rice(at)gmail(dot)com>wrote:
> 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 <hostname1> -U postgres -t history DATABASENAME | psql -h
> hostname2 -U postgres DATABASENAME > db.sql
>
> Derrick
>
>
> On Tue, Sep 20, 2011 at 11:57 PM, Hany ABOU-GHOURY <hghoury(at)gmail(dot)com>wrote:
>
>> 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 <hostname1> -U postgres -t history DATABASENAME | psql -h
>> hostname2 -U postgres -t history DATABASENAME > db.sql
>>
>> but I am getting the following error
>>
>> psql: FATAL: database "history" does not exist
>>
>>
>> Can you help please?
>>
>> what would be the script if I want more than one table (3 tables to
>> refresh)
>>
>> Kind regards
>>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Sachin Srivastava | 2011-09-21 06:15:43 | Re: query question |
Previous Message | Derrick Rice | 2011-09-21 04:16:36 | Re: PG 9 adminstrations |
From | Date | Subject | |
---|---|---|---|
Next Message | Venkat Balaji | 2011-09-21 05:38:13 | Re: : Performance Improvement Strategy |
Previous Message | Derrick Rice | 2011-09-21 04:16:36 | Re: PG 9 adminstrations |