[ADMIN] user management and edbldr use

2011-10-24 Thread Karuna Karpe
Hello, I am create one linux user that "dba" with password "password". I create one database user "dba_user" with password "dba_user". I add entry into pg_ident.conf MAPNAME SYSTEM-USERNAME PG-USERNAME dba_map dba dba_user I want to connect dba us

Re: [ADMIN] user management and edbldr use

2011-10-24 Thread Kevin Grittner
Karuna Karpe wrote: > I am create one linux user that "dba" > I create one database user "dba_user" > I add entry into pg_ident.conf > > MAPNAME SYSTEM-USERNAME PG-USERNAME > dba_map dba dba_user > > I want to connect dba user to database edb. > ./

[ADMIN] postgres 9.0.4, pg_restore and indexes

2011-10-24 Thread Greg Williamson
I am trying to document how to recover a table that has been dropped by using pg_restore. This is the table as it was originally: puppet=# \d hosts                                         Table "public.hosts"      Column      |            Type             |                     Modifiers        

[ADMIN] Dumping data using pg_dump after chrooting to a different partition

2011-10-24 Thread Krishnamurthy Radhakrishnan
Hi, I am new to PostgreSQL. We are using PostgreSQL 9.0.2 on our linux server. We have an instance of PostgreSQL 9.0 running using the primary partition on the server. We want to use the pg_dump and psql programs to migrate the data during our software upgrade process. For upgrade, we plan t

Re: [ADMIN] Dumping data using pg_dump after chrooting to a different partition

2011-10-24 Thread Kevin Grittner
Krishnamurthy Radhakrishnan wrote: > pg_dump works before chrooting to the secondary partition. Can > you please provide a way to dump the data after chrooting? How about connecting through a TCP connection and piping directly from pg_dump to psql? Of course, these days you have the option o

Re: [ADMIN] Dumping data using pg_dump after chrooting to a different partition

2011-10-24 Thread Krishnamurthy Radhakrishnan
Hi Kevin, Can you please elaborate how to do the following? connecting through a TCP connection and piping directly from pg_dump to psql Since we could have DB schema changes between the versions, we may not be able to copy the data directory. Does pg_upgrade support changes to the schema?

Re: [ADMIN] Dumping data using pg_dump after chrooting to a different partition

2011-10-24 Thread Craig James
On 10/24/11 3:10 PM, Krishnamurthy Radhakrishnan wrote: Hi, I am new to PostgreSQL. We are using PostgreSQL 9.0.2 on our linux server. We have an instance of PostgreSQL 9.0 running using the primary partition on the server. We want to use the pg_dump and psql programs to migrate the data duri

Re: [ADMIN] postgres 9.0.4, pg_restore and indexes

2011-10-24 Thread raghu ram
On Tue, Oct 25, 2011 at 3:26 AM, Greg Williamson wrote: > I am trying to document how to recover a table that has been dropped by > using pg_restore. > > This is the table as it was originally: > puppet=# \d hosts > Table "public.hosts" > Column |

Re: [ADMIN] postgres 9.0.4, pg_restore and indexes

2011-10-24 Thread Greg Williamson
Raghu Ram wrote: > >Try with below work-around to restore only hosts table from compressed dump >file: > > >"pg_restore >-t hosts -Fc /var/data/pgsql/backups/prodDB/20111017_puppet.pgdump > >hosts_plaindump" [ i.e you'll get a human-readable dump ] > Did you actually try this ? This does n

Re: [ADMIN] postgres 9.0.4, pg_restore and indexes

2011-10-24 Thread Tom Lane
Greg Williamson writes: > What I am I missing ? Or is pg_restore just not capable of restoring the full > definition of a table ? There isn't any provision for doing that automatically; it would be a bit tough to determine exactly what the "full definition" consists of in a way that makes everyb

Re: [ADMIN] Dumping data using pg_dump after chrooting to a different partition

2011-10-24 Thread Krishnamurthy Radhakrishnan
Thanks Craig. After configuring to accept TCP connections on port 5432, I tried to specify the hostname as shown below and that didn't help. Is there anything else that needs to be configured? pg_dump -h bldr-ccm36.cisco.com -p 5432 -a -U postgres pg_dump: [archiver (db)] connection to databas

Re: [ADMIN] Dumping data using pg_dump after chrooting to a different partition

2011-10-24 Thread Craig Ringer
On 25/10/11 11:01, Krishnamurthy Radhakrishnan wrote: > Thanks Craig. > > After configuring to accept TCP connections on port 5432, I tried to > specify the hostname as shown below and that didn't help. Is there > anything else that needs to be configured? > pg_dump -h bldr-ccm36.cisco.com -p 5432