[GENERAL] how to disable autovaccum

2009-04-14 Thread ahmed soua
Hi everybody, When I was working with Postgis , I had the following error: *failed: ERREUR: VACUUM ne peut pas être exécuté à partir d'une fonction ou d'une chaîne contenant plusieurs commandes* ( VACUUM cannot be executed from a function or from a chain containing several commands) *Error occu

Re: [GENERAL] how to disable autovaccum

2009-04-14 Thread A. Kretschmer
In response to ahmed soua : > Hi everybody, > > When I was working with Postgis , I had the following error: > failed: ERREUR:  VACUUM ne peut pas être exécuté à partir d'une fonction ou > d'une chaîne > contenant plusieurs commandes (   VACUUM cannot be executed from a function or > from a chain

Re: [GENERAL] Is it bad sorting in UTF ??

2009-04-14 Thread Richard Huxton
wstrzalka wrote: Why PG sort's my data in case insensitive manner? masterdb=# select name, setting from pg_settings WHERE name ilike 'lc %'; name | setting -+- lc_collate | en_US.UTF-8 Because that's what en_US.UTF-8 does. If you want "computer-style" sor

[GENERAL] Is it bad sorting in UTF ??

2009-04-14 Thread wstrzalka
Why PG sort's my data in case insensitive manner? masterdb=# SELECT name FROM enterprises ORDER BY name; name -- abc AKS 514 aks518 AKSFree1 .. The worst (totally mess) example is: masterdb=# S

Re: [GENERAL] Is it bad sorting in UTF ??

2009-04-14 Thread Craig Ringer
Richard Huxton wrote: > wstrzalka wrote: >> Why PG sort's my data in case insensitive manner? > >> masterdb=# select name, setting from pg_settings WHERE name ilike 'lc >> %'; >> name | setting >> -+- >> lc_collate | en_US.UTF-8 > > Because that's what en_US.UT

Re: [GENERAL] how to disable autovaccum

2009-04-14 Thread Alvaro Herrera
ahmed soua escribió: > Hi everybody, > > When I was working with Postgis , I had the following error: > *failed: ERREUR: VACUUM ne peut pas être exécuté à partir d'une fonction ou > d'une chaîne > contenant plusieurs commandes* ( VACUUM cannot be executed from a function > or from a chain conta

Re: [GENERAL] 'no pg_hba.conf entry for host "[local]", user "postgres", database "postgres"'...

2009-04-14 Thread Kynn Jones
On Mon, Apr 13, 2009 at 4:54 PM, Scott Marlowe wrote: > On Mon, Apr 13, 2009 at 2:01 PM, Kynn Jones wrote: > > When I try to run > > % psql > > as the postgres user, I get the error > > psql: FATAL: no pg_hba.conf entry for host "[local]", user "postgres", > > database "postgres", SSL off > > >

[GENERAL] Table dependencies

2009-04-14 Thread Kaarel Kitsemets
Hi I need to make a change to a table that many stored procedures depend on. Is there an automatic way of finding all the functions that depend on a certain table? I have tried the dependents and dependencies report in pgAdmin but these do not include functions. Thank you in advance, Kaarel

Re: [GENERAL] Is it bad sorting in UTF ??

2009-04-14 Thread Lincoln Yeoh
At 07:57 PM 4/14/2009, Richard Huxton wrote: wstrzalka wrote: Why PG sort's my data in case insensitive manner? masterdb=# select name, setting from pg_settings WHERE name ilike 'lc %'; name | setting -+- lc_collate | en_US.UTF-8 Because that's what en_US

Re: [GENERAL] Table dependencies

2009-04-14 Thread Pavel Stehule
Hello no but, you can search tablename in source code - all stored procedures store src in pg_proc.prosrc column regards Pavel Stehule 2009/4/14 Kaarel Kitsemets : > Hi > > I need to make a change to a table that many stored procedures depend on. Is > there an automatic way of finding all the f

Re: [GENERAL] 'no pg_hba.conf entry for host "[local]", user "postgres", database "postgres"'...

2009-04-14 Thread Tom Lane
Kynn Jones writes: > On Mon, Apr 13, 2009 at 4:54 PM, Scott Marlowe wrote: >> On Mon, Apr 13, 2009 at 2:01 PM, Kynn Jones wrote: >>> as the postgres user, I get the error >>> psql: FATAL: no pg_hba.conf entry for host "[local]", user "postgres", >>> database "postgres", SSL off >> What do all t

Re: [GENERAL] "PostgreSQL in the cloud" now up on media.postgresql.org

2009-04-14 Thread Joshua D. Drake
On Mon, 2009-04-13 at 14:55 -0700, Christophe wrote: > On Apr 13, 2009, at 2:54 PM, Joshua D. Drake wrote: > > Yes Vimeo can download and I will have it up soon. > > Thank you! My work here is done. :) And it is now up on vimeo. http://www.vimeo.com/4144396 Joshua D. Drake > -- PostgreSQL

Re: [GENERAL] 'no pg_hba.conf entry for host "[local]", user "postgres", database "postgres"'...

2009-04-14 Thread Tom Lane
Kynn Jones writes: > Is there a general way to get positive confirmation that a particular > pg_hba.conf has been re-read upon bouncing the server with > kill -HUP Well, you could strace the postmaster and see what files it reads in response to the signal. regards, tom l

[GENERAL] Move databases from Pg 7.2.1 to 8.3.x

2009-04-14 Thread Roderick A. Anderson
I can't avoid it any longer and have to move an old RT2 installation to a new machine. (I'll upgrade to RT3 on that machine.) The plan calls for a pg_dump using my workstation using CREATE the database and INSERTS (-C -D) . Then use psql to run the script created above to build the database

Re: [GENERAL] Move databases from Pg 7.2.1 to 8.3.x

2009-04-14 Thread Joshua D. Drake
On Tue, 2009-04-14 at 09:58 -0700, Roderick A. Anderson wrote: > I can't avoid it any longer and have to move an old RT2 installation to > a new machine. (I'll upgrade to RT3 on that machine.) > > The plan calls for a pg_dump using my workstation using CREATE the > database and INSERTS (-C -D)

Re: [GENERAL] Move databases from Pg 7.2.1 to 8.3.x

2009-04-14 Thread Tom Lane
"Joshua D. Drake" writes: > On Tue, 2009-04-14 at 09:58 -0700, Roderick A. Anderson wrote: >> The plan calls for a pg_dump using my workstation using CREATE the >> database and INSERTS (-C -D) . Then use psql to run the script created >> above to build the database on the new system. > You wan

[GENERAL] Disconnected editing - versioning of databases

2009-04-14 Thread William Temperley
Hi All I'm wondering if anyone can share any insights or experience with temporary versions of databases, allowing "disconnected editing" during Internet downtime. The use-case is that I run a Postgres database, hosted in the UK, but used by scientists in several other countries - Ecuador, Vietna

Re: [GENERAL] Move databases from Pg 7.2.1 to 8.3.x

2009-04-14 Thread John R Pierce
Roderick A. Anderson wrote: I can't avoid it any longer and have to move an old RT2 installation to a new machine. (I'll upgrade to RT3 on that machine.) The plan calls for a pg_dump using my workstation using CREATE the database and INSERTS (-C -D) . Then use psql to run the script created

Re: [GENERAL] pgSql authentication problem with openLdap

2009-04-14 Thread sandiphw
I have tried all possible variation of syntax I can imagine, like host all all 202.18.10.0/24 ldap://202.18.10.1:389/dc=abc,dc=net;;ou=people host all all 202.18.10.0/24 ldap ldap://202.18.10.1:389/dc=abc,dc=net;;ou=people host all all 202.18.10.0/24 "ldap://202.18.10.1:389/dc

Re: [GENERAL] Move databases from Pg 7.2.1 to 8.3.x

2009-04-14 Thread Roderick A. Anderson
John R Pierce wrote: Roderick A. Anderson wrote: make sure pg_hba.conf on the old machine allows you to connect from the new machine's IP address as the user postgres (this may require setting a database password for the postgres user on the old machine if the 'host' authentication method

Re: [GENERAL] Table dependencies

2009-04-14 Thread A. Kretschmer
In response to Kaarel Kitsemets : > Hi > > I need to make a change to a table that many stored procedures depend > on. Is there an automatic way of finding all the functions that depend > on a certain table? Not really, but for functions written not in C you can ask the column prosrc from the t

Re: [GENERAL] Move databases from Pg 7.2.1 to 8.3.x

2009-04-14 Thread Roderick A. Anderson
Joshua D. Drake wrote: On Tue, 2009-04-14 at 09:58 -0700, Roderick A. Anderson wrote: I can't avoid it any longer and have to move an old RT2 installation to a new machine. (I'll upgrade to RT3 on that machine.) The plan calls for a pg_dump using my workstation using CREATE the database and

Re: [GENERAL] pgSql authentication problem with openLdap

2009-04-14 Thread Raymond O'Donnell
On 14/04/2009 13:28, sandiphw wrote: > host all all 202.18.10.0/24 > "ldap://202.18.10.1:389/dc=abc,dc=net;;ou=people"; I don't know anything about LDAP, I'm only scanning the PG docs, but this version is missing the "ldap" method. It should be: host all all 202.18.10.0/24 ldap "ldap:

Re: [GENERAL] Move databases from Pg 7.2.1 to 8.3.x

2009-04-14 Thread Roderick A. Anderson
Tom Lane wrote: "Joshua D. Drake" writes: On Tue, 2009-04-14 at 09:58 -0700, Roderick A. Anderson wrote: The plan calls for a pg_dump using my workstation using CREATE the database and INSERTS (-C -D) . Then use psql to run the script created above to build the database on the new system.

Re: [GENERAL] pgSql authentication problem with openLdap

2009-04-14 Thread Scott Mead
On Tue, Apr 14, 2009 at 8:28 AM, sandiphw wrote: > > I have tried all possible variation of syntax I can imagine, like > > host all all 202.18.10.0/24 > ldap://202.18.10.1:389/dc=abc,dc=net;;ou=people > host all all 202.18.10.0/24 ldap > ldap://202.18.10.1:389/dc=abc,dc=net;;ou=people > h

Re: [GENERAL] 'no pg_hba.conf entry for host "[local]", user "postgres", database "postgres"'...

2009-04-14 Thread Kynn Jones
On Tue, Apr 14, 2009 at 12:22 PM, Tom Lane wrote: > Kynn Jones writes: > > On Mon, Apr 13, 2009 at 4:54 PM, Scott Marlowe >wrote: > >> On Mon, Apr 13, 2009 at 2:01 PM, Kynn Jones wrote: > >>> as the postgres user, I get the error > >>> psql: FATAL: no pg_hba.conf entry for host "[local]", use

Re: [GENERAL] pgSql authentication problem with openLdap

2009-04-14 Thread Dave Page
On Tue, Apr 14, 2009 at 1:28 PM, sandiphw wrote: > > I have tried all possible variation of syntax I can imagine, like > > host  all  all  202.18.10.0/24 > ldap://202.18.10.1:389/dc=abc,dc=net;;ou=people > host  all  all  202.18.10.0/24   ldap > ldap://202.18.10.1:389/dc=abc,dc=net;;ou=people > ho

Re: [GENERAL] 'no pg_hba.conf entry for host "[local]", user "postgres", database "postgres"'...

2009-04-14 Thread Alvaro Herrera
Kynn Jones escribió: > Is there a general way to get positive confirmation that a particular > pg_hba.conf has been re-read upon bouncing the server with SHOW hba_file; -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.

Re: [GENERAL] Table dependencies

2009-04-14 Thread Kaarel Kitsemets
Thank you. That worked for me :) Kaarel Pavel Stehule wrote: Hello no but, you can search tablename in source code - all stored procedures store src in pg_proc.prosrc column regards Pavel Stehule 2009/4/14 Kaarel Kitsemets : Hi I need to make a change to a table that many stored proced

[GENERAL] backup getting larger and larger

2009-04-14 Thread Ivan Sergio Borgonovo
I still have to investigate if the tables are getting really larger... but at a first guess there shouldn't be any good reason to see tables getting so large so fast... so I was wondering if anything could contribute to make a backup much larger than it was other than table containing more records?

[GENERAL] Benetl, a free ETL tool for files using postgreSQL, is out in version 2.7

2009-04-14 Thread benoît carpentier
Dear all, Benetl, a free ETL tool for files using postgreSQL, is out in version 2.7. You can freely download it at : www.benetl.net New functions, performance improved, you should update. You can learn more about ETL tools at: http://en.wikipedia.org/wiki/Extract,_transform,_load Thanks for

[GENERAL] querying sequence names

2009-04-14 Thread David Kerr
I like to keep a "grants" script around that will fix all of the permissions in my enviornments (I've got heavy development going on so i'm frequently dropping and recreating an environment, or duplicating the schema elsewhere) finding a list of sequences that i could build dynamic sql off of was

Re: [GENERAL] 'no pg_hba.conf entry for host "[local]", user "postgres", database "postgres"'...

2009-04-14 Thread Kynn Jones
On Tue, Apr 14, 2009 at 2:53 PM, Alvaro Herrera wrote: > Kynn Jones escribió: > > > Is there a general way to get positive confirmation that a particular > > pg_hba.conf has been re-read upon bouncing the server with > > SHOW hba_file; That's handy. Thanks! Kynn

Re: [GENERAL] backup getting larger and larger

2009-04-14 Thread Steve Crawford
Ivan Sergio Borgonovo wrote: I still have to investigate if the tables are getting really larger... but at a first guess there shouldn't be any good reason to see tables getting so large so fast... so I was wondering if anything could contribute to make a backup much larger than it was other than

[GENERAL] Using CHECK while CREATE'ing table

2009-04-14 Thread vj
Hi All, I am new to postgreSQL and have a working experience with SQLite. While i am creating a table, i want to use constraints or more so - use checks to see that 1. the email address is valid [a basic check with no bells and whistles is good enuf for me]. 2. On a separate column entry, i wou

[GENERAL] Possible postgre serverlog file handle leak

2009-04-14 Thread Crowe, Eric
Greetings, We recently upgraded from 7.4.1 to 8.3.6 postgre and have come across what appears to be a postgre serverlog file handle leak. Interestly enough, the serverlog file handles (over 100 of them) are being maintained by our application server process. We are using JBoss 4.2.3 with Hiberna

Re: [GENERAL] Using CHECK while CREATE'ing table

2009-04-14 Thread Richard Broersma
On Tue, Apr 14, 2009 at 11:56 AM, vj wrote: >  I am new to postgreSQL and have a working experience with SQLite. >  While i am creating a table, i want to use constraints or more so - > use checks to see that I think that you will find that PostgreSQL has more than enough features to solve this

Re: [GENERAL] backup getting larger and larger

2009-04-14 Thread Ivan Sergio Borgonovo
On Tue, 14 Apr 2009 13:26:24 -0700 Steve Crawford wrote: > Ivan Sergio Borgonovo wrote: > > I still have to investigate if the tables are getting really > > larger... but at a first guess there shouldn't be any good > > reason to see tables getting so large so fast... so I was > > wondering if an

[GENERAL] PITR - warm standby switchover question

2009-04-14 Thread Dan Hayes
I've followed the implementation instructions at 24.4.2: http://www.postgresql.org/docs/current/static/warm-standby.html And I've used the archive/restore commands from the example in F23.2: http://www.postgresql.org/docs/current/static/pgstandby.html This all works great. The primary backs up t

[GENERAL] custom stemming in full text search

2009-04-14 Thread Aaron Patterson
Hello, I'm trying to use full text search against text that contains lots of technical terms, and I'd like to add some custom stemming. I have many occurrances of "libblah" or "blahtool", and I'd like to remove the "lib" and "tool" terms since they are meaningless search terms. Is there an easy

Re: [GENERAL] PITR - warm standby switchover question

2009-04-14 Thread Erik Jones
On Apr 14, 2009, at 3:47 PM, Dan Hayes wrote: I've followed the implementation instructions at 24.4.2: http://www.postgresql.org/docs/current/static/warm-standby.html And I've used the archive/restore commands from the example in F23.2: http://www.postgresql.org/docs/current/static/pgstandby.h

Re: [GENERAL] Disconnected editing - versioning of databases

2009-04-14 Thread Greg Smith
On Tue, 14 Apr 2009, William Temperley wrote: I could potentially run a database in each of these countries and provide 100% uptime, obviously raising the issue of version conflicts that would require hand-merging. It sounds like you want an asynchronous master-slave database architecture whe

Re: [GENERAL] PITR - warm standby switchover question

2009-04-14 Thread Dan Hayes
Excellent! Thanks. One other quick question... What would happen if I didn't delete the recovery.conf file? Is that step just to prevent accidentally restarting the server with it there? On Tue, Apr 14, 2009 at 6:26 PM, Erik Jones wrote: > > On Apr 14, 2009, at 3:47 PM, Dan Hayes wrote: > >

Re: [GENERAL] Minimizing Recovery Time (wal replication)

2009-04-14 Thread Koichi Suzuki
If you're using "full page write = off", prefetching data page from WAL speeds up the recovery too. I've proposed this patch but was carried over to 8.5. I'm planning to release this as an external tool, which will not work well with Hot Standby but will work in usual recovery. I'm not sure ho

[GENERAL] Postgres server startup

2009-04-14 Thread CM J
Hi, When logged in as administrator, i start the postgres server with the following command: runas /user:postgres "D:\postgres_new\pgsql\bin\pg_ctl.exe start -D D:\postgres_new\pgsql\data" The problem is "runas" cmd is not script friendly as i can not pass the password as a c

Re: [GENERAL] Disconnected editing - versioning of databases

2009-04-14 Thread Johan Nel
Will, William Temperley wrote: Hi All I'm wondering if anyone can share any insights or experience with temporary versions of databases, allowing "disconnected editing" during Internet downtime. What do your users use for updating data? Software that you developed for them? Do they use a w

Re: [GENERAL] Postgres server startup

2009-04-14 Thread John R Pierce
CM J wrote: Hi, When logged in as administrator, i start the postgres server with the following command: runas /user:postgres "D:\postgres_new\pgsql\bin\pg_ctl.exe start -D D:\postgres_new\pgsql\data" The problem is "runas" cmd is not script friendly as i can not pass

Re: [GENERAL] PITR - warm standby switchover question

2009-04-14 Thread Erik Jones
Well, if you don't delete the recovery.conf and you *do* delete pg_standby's stop file (or it gets deleted, for example if you set it to go under /tmp and the server is restarted for whatever reason) the server will attempt to go back into recovery mode using your configured recovery comman