Re: [ADMIN] GRANT ALL PRIVILEGES ON DATABASE

2005-08-17 Thread Bruno Wolff III
On Wed, Aug 17, 2005 at 09:17:28 -0700, [EMAIL PROTECTED] wrote: > Which means everytime I create a new table or a new schema, I have to run > the script again, right? You will need to do something to grant access to the new object to whoever is supposed to have access. ---

Re: [ADMIN] GRANT ALL PRIVILEGES ON DATABASE

2005-08-17 Thread Zuoxin . Wang
Which means everytime I create a new table or a new schema, I have to run the script again, right? Thanks. Oliver Elphick 08/17/2005 09:08 AM Please respond to olly                 To:        Zuoxin Wang/CA/[EMAIL PROTECTED]         cc:        [EMAIL PROTECTED], pgsql-admin@postgresql.o

[ADMIN] PostgreSQL Installer for Windows: No buffer space available

2005-08-17 Thread Jana Nguyen
Hi there, I am running PostgreSQL Installer for Windows v.-8.0.3. It is giving me the following error when I tried to add a new table: "No buffer space available (maximum connections reached?)" When I do an uninstall of postgresql-8.0.3 it seems not to fully uninstall the software, how do I co

Re: [ADMIN] Updateing pg_trigger and pg_constraint

2005-08-17 Thread Craig Servin
> Try starting a fresh backend session. Manual hacking of those tables > isn't going to cause a relcache reload ... > Simply reconnecting to the backend does not help. If I restart the server everything works as expected. I am wondering if there is a way to trigger a relcache reload without sh

Re: [ADMIN] Updateing pg_trigger and pg_constraint

2005-08-17 Thread Tom Lane
Craig Servin <[EMAIL PROTECTED]> writes: > I am trying to make some foreign keys deferrable and initially deferred. > These foreign key constraints already exist so I was going to change them by > updating pg_trigger and pg_constraint. > However the changes do not seem to take affect. Is there

Re: [ADMIN] vacuumdb -a -f

2005-08-17 Thread Alvaro Herrera
On Wed, Aug 17, 2005 at 02:15:42PM -0400, D Kavan wrote: > > 'du -h' in the base directory. > > >How are you finding out the DB size? You are considering the difference in XLog segment size, right? The pg_xlog directory may start almost empty and then start filling. The space will not be recov

[ADMIN] Updateing pg_trigger and pg_constraint

2005-08-17 Thread Craig Servin
I am trying to make some foreign keys deferrable and initially deferred. These foreign key constraints already exist so I was going to change them by updating pg_trigger and pg_constraint. However the changes do not seem to take affect. Is there something I need to do to get PostgreSQL to rec

Re: [ADMIN] vacuumdb -a -f

2005-08-17 Thread D Kavan
'du -h' in the base directory. How are you finding out the DB size? G.- ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [ADMIN] vacuumdb -a -f

2005-08-17 Thread Chris Hoover
You might want to try doing a reindexdb -a -e (reindexdb is in the contrib directory of your pg source). The first time I ran this, I gained back a significant amount of space. I now run a vacuumdb -v -f -a and then a reindexdb -a -e every weekend to have PostgreSQL give back as much space as it

Re: [ADMIN] vacuumdb -a -f

2005-08-17 Thread D Kavan
CASE CLOSED! Thanks for the tip on the reindex script. That did the trick. It was one table in particuliar. ~DjK From: Chris Hoover <[EMAIL PROTECTED]> To: Guido Barosio <[EMAIL PROTECTED]> CC: D Kavan <[EMAIL PROTECTED]>, pgsql-admin@postgresql.org Subject: Re: [ADMIN] va

Re: [ADMIN] GRANT ALL PRIVILEGES ON DATABASE

2005-08-17 Thread Bruno Wolff III
On Wed, Aug 17, 2005 at 08:14:02 -0700, [EMAIL PROTECTED] wrote: > Could you tell us what is the best way to grant a user who can select all > data from all tables, if I don't like to write a script which Andrew > memtioned earlier. Other than some kind of script, you can make them a superuser

Re: [ADMIN] vacuumdb -a -f

2005-08-17 Thread Guido Barosio
How are you finding out the DB size?   G.-  On 8/17/05, D Kavan <[EMAIL PROTECTED]> wrote: Hi,Thanks for the tips.Unfortunatley for me,  even after started doing vacuumdb -a 3 times a day and increasing fsm dramatically , the size of the database won't go downeven 1 MB.  It's stil at 5.6 GB, size a

Re: [ADMIN] vacuumdb -a -f

2005-08-17 Thread Joshua D. Drake
D Kavan wrote: Hi, Thanks for the tips. Unfortunatley for me, even after started doing vacuumdb -a 3 times a day and increasing fsm dramatically , the size of the database won't go down even 1 MB. It's stil at 5.6 GB, size after restore = 4 GB. I even did a stop/start instead of a re-loa

Re: [ADMIN] GRANT ALL PRIVILEGES ON DATABASE

2005-08-17 Thread Oliver Elphick
On Wed, 2005-08-17 at 08:35 -0700, Andrew Gold wrote: > Actually, I read the GRANT man page several times; what you state so > clearly and simply, isn't described so plainly in that document. > > I posted because I found the GRANT man page deficient. > > Strictly speaking the GRANT man page indi

Re: [ADMIN] GRANT ALL PRIVILEGES ON DATABASE

2005-08-17 Thread Oliver Elphick
On Wed, 2005-08-17 at 08:14 -0700, [EMAIL PROTECTED] wrote: > > Could you tell us what is the best way to grant a user who can select > all data from all tables, if I don't like to write a script which > Andrew memtioned earlier. Here's a quick way to generate a script and then run it, all from

Re: [ADMIN] GRANT ALL PRIVILEGES ON DATABASE

2005-08-17 Thread Alvaro Herrera
On Wed, Aug 17, 2005 at 08:35:06AM -0700, Andrew Gold wrote: > This followed a series of descriptions of various privileges (select, > insert, update, etc.). From the context of the description, it appears > that "GRANT ALL PRIVILEGES" bestows all of the preceding rights on the > recipient user

Re: [ADMIN] GRANT ALL PRIVILEGES ON DATABASE

2005-08-17 Thread Andrew Gold
Actually, I read the GRANT man page several times; what you state so clearly and simply, isn't described so plainly in that document. I posted because I found the GRANT man page deficient. Strictly speaking the GRANT man page indicated the following: -begin quote---

Re: [ADMIN] GRANT ALL PRIVILEGES ON DATABASE

2005-08-17 Thread Zuoxin . Wang
Could you tell us what is the best way to grant a user who can select all data from all tables, if I don't like to write a script which Andrew memtioned earlier. Thanks. Oliver Elphick Sent by: [EMAIL PROTECTED] 08/16/2005 05:00 PM Please respond to olly                 To:        Andre

Re: [ADMIN] vacuumdb -a -f

2005-08-17 Thread D Kavan
Hi, Thanks for the tips. Unfortunatley for me, even after started doing vacuumdb -a 3 times a day and increasing fsm dramatically , the size of the database won't go down even 1 MB. It's stil at 5.6 GB, size after restore = 4 GB. I even did a stop/start instead of a re-load to make sure t

Re: [ADMIN] error codes in postgresql

2005-08-17 Thread Sivakumar K
-Original Message- From: sandhya [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 17, 2005 6:16 PM To: Sivakumar K Cc: postgre; sandhya Subject: Re: [ADMIN] error codes in postgresql   Thank you Sivakumar. ExecStatusType PQresultStatus(const PGresult *res); Will it

Re: [ADMIN] SQL Help - Obtaining ID of record INSERTED

2005-08-17 Thread Michael Fuhr
On Wed, Aug 17, 2005 at 08:39:22AM -0400, [EMAIL PROTECTED] wrote: > You stated that the SELECT currval('orderid_id_seq') statement is a > separate query and must be treated as such. > > This gives me cause for concern. My intention is to obtain the orderid > of the order inserted at that momen

Re: [ADMIN] SQL Help - Obtaining ID of record INSERTED

2005-08-17 Thread [EMAIL PROTECTED]
Thank you. You stated that the SELECT currval('orderid_id_seq') statement is a separate query and must be treated as such. This gives me cause for concern. My intention is to obtain the orderid of the order inserted at that moment, but if I am to use a separate query it would seem there is

Re: [ADMIN] error codes in postgresql

2005-08-17 Thread sandhya
Thank you Sivakumar. ExecStatusType PQresultStatus(const PGresult *res); Will it return code or message.If i want to use this what should be the return value of my function?   Onemore doubt.. char *PQresultErrorField(const PGresult *res, int fieldcode); What is the use of this?What is the diffe

Re: [ADMIN] error codes in postgresql

2005-08-17 Thread Sivakumar K
Hi sandhya,   You can use PQresultStatus API to get the result status of the command execution   And PQresStatus to convert the enumerated type returned by PQresultStatus to a string constant.   For more information you can check the libpq API documentation   http://www

[ADMIN] error numbers in postgresql

2005-08-17 Thread sandhya
Hi,       I want to know ,if there is any way to return  error codes/numbers as  a return value from the postgresql functions. For ex:   If i am using my connection function say, DbConnect(dname,uname,.) { //here i use postgres connection function pg_conn *conn; conninfo="dbname=exa

[ADMIN] error codes in postgresql

2005-08-17 Thread sandhya
    Hi,       I want to know ,if there is any way to return  error codes/numbers as  a return value from the postgresql functions. For ex:   If i am using my connection function say, DbConnect(dname,uname,.) { //here i use postgres connection function pg_conn *conn; conninfo="dbname