[ADMIN] stored procedure and java

2005-02-10 Thread Jimmy P Mani
hi all , i want to retrieve records from my java program i am getting these exceptions pls help me No class found for refcursor at org.postgresql.jdbc1.AbstractJdbc1Connection.getObject(AbstractJdbc1C onnection.java:693) at org.postgresql.jdbc2.AbstractJdbc2Connection.getObject(Ab

Re: [ADMIN] automating remote pg_dump

2005-02-10 Thread Tom Lane
Dick Davies <[EMAIL PROTECTED]> writes: > I notice pg_dump does'nt have a '-P' flag to provide a password, ~/.pgpass is the preferred solution. http://www.postgresql.org/docs/8.0/static/libpq-pgpass.html regards, tom lane ---(end of broadcast)-

Re: [ADMIN] Installing 8 using a different drive for data

2005-02-10 Thread Scott Marlowe
On Thu, 2005-02-10 at 14:32, Joel Fradkin wrote: > I tried changing the directory in postgres.conf, but it is looking for a > PG_VERSION? > Do I need to do a dbinti or something? > I only want my data to be in the pgdata drive I want the rest in > /var/lib/pgsql/data > I actually want my wal in /wa

[ADMIN] automating remote pg_dump

2005-02-10 Thread Dick Davies
I notice pg_dump does'nt have a '-P' flag to provide a password, so I assume you generally use it to pull data through a socket. I need to run it remotely (to dump a live db and clone its structure to a test db for unit testing), has anyone got a way to do this? I've tried 'echo pass | pg_dump -h

Re: [ADMIN] removing create database privileges?

2005-02-10 Thread Dick Davies
* Tom Lane <[EMAIL PROTECTED]> [0231 20:31]: > Dick Davies <[EMAIL PROTECTED]> writes: > > I'm probably missing something obvious, but how do I revoke the 'create > > database' > > privilege for a user? > > See ALTER USER. Thanks Tom. As usual I found it 15 seconds after posting :) -- 'Power c

Re: [ADMIN] removing create database privileges?

2005-02-10 Thread Tom Lane
Dick Davies <[EMAIL PROTECTED]> writes: > I'm probably missing something obvious, but how do I revoke the 'create > database' > privilege for a user? See ALTER USER. regards, tom lane ---(end of broadcast)--- TIP 6: Have yo

[ADMIN] Installing 8 using a different drive for data

2005-02-10 Thread Joel Fradkin
I tried changing the directory in postgres.conf, but it is looking for a PG_VERSION? Do I need to do a dbinti or something? I only want my data to be in the pgdata drive I want the rest in /var/lib/pgsql/data I actually want my wal in /wal (a different drive as well). I have the instructions 0) ba

[ADMIN] removing create database privileges?

2005-02-10 Thread Dick Davies
I'm probably missing something obvious, but how do I revoke the 'create database' privilege for a user? -- 'Oh, wait you're serious. Let me laugh even harder.' -- Bender Rasputin :: Jack of All Trades - Master of Nuns ---(end of broadcast)---

Re: [ADMIN] Win32-postgresql command line password

2005-02-10 Thread Bruce Momjian
Pascal Van Puymbroeck wrote: > I'm not sure if this is the best method but I use the: > > pgsql -d dbase -U ppk -f e:\\Test.imp < passwd.txt > > Where passwd.txt holds the password for the user specified. Also see .pgpass in the libpq manual section. It allows you to store passwords in a file f

Re: [ADMIN] Column duplication with \d in psql

2005-02-10 Thread Bruce Momjian
Adam Witney wrote: > On 10/2/05 5:45 pm, "Bruce Momjian" wrote: > > > Adam Witney wrote: > >> > >> Something strange has just appeared in my database, can anyone explain this > >> duplication of columns: > >> > >> test=# \d plate_reporter > >> Table "plate_

Re: [ADMIN] Win32-postgresql command line password

2005-02-10 Thread Pascal Van Puymbroeck
I'm not sure if this is the best method but I use the: pgsql -d dbase -U ppk -f e:\\Test.imp < passwd.txt Where passwd.txt holds the password for the user specified. Hope this helps you out. Pascal Van Puymbroeck ZENON productions bvba ---(end of broadcast)--

Re: [ADMIN] Column duplication with \d in psql

2005-02-10 Thread Adam Witney
On 10/2/05 5:45 pm, "Bruce Momjian" wrote: > Adam Witney wrote: >> >> Something strange has just appeared in my database, can anyone explain this >> duplication of columns: >> >> test=# \d plate_reporter >> Table "plate_reporter" >> Column | Ty

Re: [ADMIN] Column duplication with \d in psql

2005-02-10 Thread Bruce Momjian
Adam Witney wrote: > > Something strange has just appeared in my database, can anyone explain this > duplication of columns: > > test=# \d plate_reporter > Table "plate_reporter" > Column | Type | Modifiers > ---

[ADMIN] Column duplication with \d in psql

2005-02-10 Thread Adam Witney
Something strange has just appeared in my database, can anyone explain this duplication of columns: test=# \d plate_reporter Table "plate_reporter" Column | Type | Modifiers ---+-+

[ADMIN] Check user

2005-02-10 Thread KALODIKIS THODORIS
Title: Check user Hello there, Im using PostgreSQL 7.2.1 and  I have a user who connects remotely to a database. This connection is almost permanent but sometimes is lost. I want to know where I can check in Postgres i.e.(log file) that the connection from the current user is lost so I make