Re: [ADMIN] About Monitoring Software

2006-12-27 Thread Shoaib Mir
'EnterpriseDB Management Server' ( http://www.enterprisedb.com/products/enterprisedb_mgmtsvr.do) can be a good option as with your requirements --- Shoaib Mir EnterpriseDB (www.enterprisedb.com) On 12/27/06, Rajesh Kumar Mallah <[EMAIL PROTECTED]> wrote: On 12/27/06,

[ADMIN] Dump and Query

2006-12-27 Thread Enrico
Is there any way to make a dump from a query? For example if my query is: select field1,field2 from table Does it exist a shell command like pg_dump --QUERY myquery -f myfile? Have a nice day Enrico -- If Bill Gates had a penny for everytime Windows crashed,he'd be a multi-billionaire by now

Re: [ADMIN] Dump and Query

2006-12-27 Thread Andy Shellam (Mailing Lists)
Hi Enrico, The following command will get you a text file of your result-set: # echo "SELECT customer_id, first_name, sur_name FROM users;"|/usr/local/pgsql/bin/psql -U [username] -d [database] > myfile.txt # cat myfile.txt customer_id | first_name | sur_name -++--

Re: [ADMIN] Dump and Query

2006-12-27 Thread Shoaib Mir
You can use the COPY ( http://www.postgresql.org/docs/current/static/sql-copy.html) command for doing so An example will be --> COPY (SELECT * FROM country WHERE country_name LIKE 'A%') TO '/usr1/proj/bray/sql/a_list_countries.copy'; - Shoaib Mir EnterpriseDB (www.enterp

Re: [ADMIN] Dump and Query

2006-12-27 Thread Bricklen Anderson
Andy Shellam (Mailing Lists) wrote: Hi Enrico, The following command will get you a text file of your result-set: # echo "SELECT customer_id, first_name, sur_name FROM users;"|/usr/local/pgsql/bin/psql -U [username] -d [database] > myfile.txt # cat myfile.txt Alternative version: psql -d

Re: [ADMIN] psql does not save contents into file at end of command.

2006-12-27 Thread Tom Lane
"Rajesh Kumar Mallah" <[EMAIL PROTECTED]> writes: > tradein_clients=> \o db.lst > tradein_clients=> \l (till this point, there is nothing in file db.lst) > tradein_clients=> \q (now it saves) (also saves if another \o is issued) > Dunno till what extent this behavior is justified. I wasn't too e

[ADMIN] Importing from excelinto PostgreSQL

2006-12-27 Thread Negandhi, Nishith
I hv some data in excel which needs to be imported into PostgreSQL. I am using PgAdmin III to access the PostgreSQL database Can anyone pleease guide me in this .. ?? I am mew to PostgreSQL. Thanks in advance ---(end of broadcast)--- TIP 1: if post

Re: [ADMIN] Importing from excelinto PostgreSQL

2006-12-27 Thread Bruce Momjian
Negandhi, Nishith wrote: > I hv some data in excel which needs to be imported into PostgreSQL. > I am using PgAdmin III to access the PostgreSQL database > Can anyone pleease guide me in this .. ?? I am mew to PostgreSQL. Export from excell as comman-delimmited. PostgreSQL can load that. --

Re: [ADMIN] Importing from excelinto PostgreSQL

2006-12-27 Thread Joshua D. Drake
On Wed, 2006-12-27 at 12:17 -0500, Bruce Momjian wrote: > Negandhi, Nishith wrote: > > I hv some data in excel which needs to be imported into PostgreSQL. > > I am using PgAdmin III to access the PostgreSQL database > > Can anyone pleease guide me in this .. ?? I am mew to PostgreSQL. > > Export

Re: [ADMIN] psql does not save contents into file at end of command.

2006-12-27 Thread Rajesh Kumar Mallah
On 12/27/06, Tom Lane <[EMAIL PROTECTED]> wrote: "Rajesh Kumar Mallah" <[EMAIL PROTECTED]> writes: > tradein_clients=> \o db.lst > tradein_clients=> \l (till this point, there is nothing in file db.lst) > tradein_clients=> \q (now it saves) (also saves if another \o is issued) > Dunno till wha

Re: [ADMIN] Dump and Query

2006-12-27 Thread Bruno Wolff III
On Wed, Dec 27, 2006 at 14:05:30 +0100, Enrico <[EMAIL PROTECTED]> wrote: > Is there any way to make a dump from a query? > > For example if my query is: > > select field1,field2 from table > > Does it exist a shell command like pg_dump --QUERY myquery -f myfile? In 8.2 you can use a query wi

[ADMIN] 8.2.0 upgrade issue: loss of CONNECT rights

2006-12-27 Thread L Bayuk
Another thing to watch out for when upgrading to 8.2.0: I had some 8.1.x databases with restricted rights, like REVOKE CREATE ON DATABASE. After pg_dumpall and reload into 8.2.0, I lost CONNECT rights on those databases. So only the superuser account can connect. The reason seems to be that my du

[ADMIN] 8.2.0 upgrade issue: postmaster -S

2006-12-27 Thread L Bayuk
Something to watch out for when upgrading to 8.2.0: My server start command for 8.1.5 and many prior releases: $ postmaster -D /opt/postgres/data -S -i Try it at 8.2.0: $ postmaster -D /opt/postgres/data -S -i FATAL: parameter "work_mem" requires an integer value Reason: 'postmaster' an

Re: [ADMIN] 8.2.0 upgrade issue: loss of CONNECT rights

2006-12-27 Thread Tom Lane
L Bayuk <[EMAIL PROTECTED]> writes: > Another thing to watch out for when upgrading to 8.2.0: > I had some 8.1.x databases with restricted rights, like REVOKE CREATE ON > DATABASE. After pg_dumpall and reload into 8.2.0, I lost CONNECT rights on > those databases. So only the superuser account can

Re: [ADMIN] 8.2.0 upgrade issue: postmaster -S

2006-12-27 Thread Tom Lane
L Bayuk <[EMAIL PROTECTED]> writes: > postmaster -S used to mean: silent mode. Now it means: Set > memory used for sorting. Unfortunately, the reference manual still > documents the old meaning for -S (PostgreSQL Server Applications, postgres > command, -S option). Hmmm ... Peter, is this a docume