Re: [GENERAL] Insert unique fails, still increments ID in a lookup table

2009-09-22 Thread Chris
The problem is that the uniqueness check apparently increases the serial counter and hence I burn through the bigint IDs much faster. It's a waste for 100m+ records... It's a little hidden but http://www.postgresql.org/docs/current/static/functions-sequence.html Per the last sentence, upda

[GENERAL] citext like query and index usage

2009-09-22 Thread Tore Halvorsen
Hi, Is it possible to use an index for like queries on a citext column? I'm using pg 8.4.1 on windows - with no changes to the default configuration. For example: CREATE TABLE test ( citext citext NOT NULL ); INSERT INTO test select md5(random()::text) FROM generate_series(0, 100, 1); CREATE

[GENERAL] PLJava not installed for PostgreSQL 8.4 on Solaris 10 x86 64

2009-09-22 Thread Arnold, Sandra
Is the pljava.so file included in the PostgreSQL 8.4 binary file for Solaris 10 x86 64-bit? If not, where can I go to download this library file? If so, what would cause it to not install during the installation process? Thanks, Sandra Arnold Sr. DBA DOE/OSTI Oak Ridge, TN

Re: [GENERAL] VMWare file system / database corruption

2009-09-22 Thread Merlin Moncure
On Mon, Sep 21, 2009 at 4:03 PM, Scot Kreienkamp wrote: > On the contrary, we've been running PG in production for years now under > VMWare.  Same with MSSQL.  We've never had any problems.  Less so than an > actual physical machine actually since we can move the server to different > physical

Re: [GENERAL] VMWare file system / database corruption

2009-09-22 Thread Bill Moran
In response to Merlin Moncure : > On Mon, Sep 21, 2009 at 4:03 PM, Scot Kreienkamp wrote: > > On the contrary, we've been running PG in production for years now under > > VMWare.  Same with MSSQL.  We've never had any problems.  Less so than an > > actual physical machine actually since we can

[GENERAL] How to have ant's task insert special chars appropriately?

2009-09-22 Thread agostonbejo
Hi! What I'm trying to do is to insert some data from a sql file into a postgres DB by calling the ant task. My problem is that I can't get special characters (even if they can be represented by the standard ASCII charset, such as ä, ö, ü, é, etc.) to be inserted correctly. When I check the D

Re: [GENERAL] citext like query and index usage

2009-09-22 Thread Emanuel Calvo Franco
> Is it possible to use an index for like queries on a citext column? > I'm using pg 8.4.1 on windows - with no changes to the default configuration. > > For example: > > CREATE TABLE test ( citext citext NOT NULL ); > INSERT INTO test select md5(random()::text) FROM generate_series(0, 100, >

Re: [GENERAL] Storage of Foreign Keys

2009-09-22 Thread Lew
Scott Marlowe wrote: On Mon, Sep 21, 2009 at 11:09 AM, Alan Hodgson wrote: On Monday 21 September 2009, Christian Koetschan wrote: Is everything I insert into mycolA and mycolB stored twice, or is there something like a pointer/reference from mycolA to the things stored in mycolB? It's stor

Re[GENERAL] sources for learning PostgreSQL

2009-09-22 Thread dan06
Hi, I've used mysql for sometime now, and I'd like to broaden my db knowledge/experience to include postgresql. Can anyone recommend any books or other resources that could help me along? Thanks. -Dan -- View this message in context: http://www.nabble.com/Resources-for-learning-PostgreSQL-tp25

Re: Re[GENERAL] sources for learning PostgreSQL

2009-09-22 Thread Paul M Foster
On Tue, Sep 22, 2009 at 10:43:09AM -0700, dan06 wrote: > > Hi, > > I've used mysql for sometime now, and I'd like to broaden my db > knowledge/experience to include postgresql. Can anyone recommend any books > or other resources that could help me along? Thanks. The PostgreSQL website has excel

Re: [GENERAL] citext like query and index usage

2009-09-22 Thread Alvaro Herrera
Tore Halvorsen escribió: > Hi, > > Is it possible to use an index for like queries on a citext column? > I'm using pg 8.4.1 on windows - with no changes to the default configuration. > > For example: > > CREATE TABLE test ( citext citext NOT NULL ); > INSERT INTO test select md5(random()::text)

Re: [GENERAL] PLJava not installed for PostgreSQL 8.4 on Solaris 10 x86 64

2009-09-22 Thread Joshua D. Drake
On Tue, 2009-09-22 at 09:10 -0400, Arnold, Sandra wrote: > Is the pljava.so file included in the PostgreSQL 8.4 binary file for > Solaris 10 x86 64-bit? If not, where can I go to download this > library file? If so, what would cause it to not install during the > installation process? pljava is

Re: [GENERAL] citext like query and index usage

2009-09-22 Thread Tore Halvorsen
On Tue, Sep 22, 2009 at 8:49 PM, Alvaro Herrera wrote: > Tore Halvorsen escribió: >> Hi, >> >> Is it possible to use an index for like queries on a citext column? >> I'm using pg 8.4.1 on windows - with no changes to the default configuration. >> >> For example: >> >> CREATE TABLE test ( citext ci

[GENERAL] Logging statements longer than 1000ms doesn't appear to work

2009-09-22 Thread Chris Barnes
I've have set the parameter in my postgresql.conf file and have restarted postgres. When reviewing the log file I am finding that all of the statements are being logged (0.108 ms)? Is there some other parameter that I have missed? log_min_duration_statement = 1000 # -1 is disab

Re: [GENERAL] citext like query and index usage

2009-09-22 Thread Tom Lane
Tore Halvorsen writes: > On Tue, Sep 22, 2009 at 8:49 PM, Alvaro Herrera > wrote: >> Tore Halvorsen escribió: >>> Is it possible to use an index for like queries on a citext column? >> Hmm, I think this needs one of the *_pattern_ops indexes.  I'm not sure >> if you can use the builtin ones with

Re: [GENERAL] Logging statements longer than 1000ms doesn't appear to work

2009-09-22 Thread Tom Lane
Chris Barnes writes: > I've have set the parameter in my postgresql.conf file and have restarted > postgres. > When reviewing the log file I am finding that all of the statements are being > logged (0.108 ms)? Perhaps you also set log_statement = all, or some other reason that would cause them

Re: [GENERAL] Logging statements longer than 1000ms doesn't appear to work

2009-09-22 Thread Chris Barnes
I checked and this is the only refererences. Were usng 8.3.3. #log_statement = 'none' # none, ddl, mod, all #log_statement_stats = off > To: compuguruchrisbar...@hotmail.com > CC: pgsql-general@postgresql.org > Subject: Re: [GENERAL] Logging statements longer than 1000ms doe

Re: [GENERAL] PLJava not installed for PostgreSQL 8.4 on Solaris 10 x86 64

2009-09-22 Thread John R Pierce
Arnold, Sandra wrote: Is the pljava.so file included in the PostgreSQL 8.4 binary file for Solaris 10 x86 64-bit? If not, where can I go to download this library file? If so, what would cause it to not install during the installation process? pljava is a mess. you either use GCJ which is

Re: [GENERAL] PLJava not installed for PostgreSQL 8.4 on Solaris 10 x86 64

2009-09-22 Thread Joshua D. Drake
On Tue, 2009-09-22 at 13:35 -0700, John R Pierce wrote: > Arnold, Sandra wrote: > > Is the pljava.so file included in the PostgreSQL 8.4 binary file for > > Solaris 10 x86 64-bit? If not, where can I go to download this > > library file? If so, what would cause it to not install during the > >

Re: [GENERAL] Graphical representation of query plans

2009-09-22 Thread Emi Lu
Grzegorz Jaśkiewicz wrote: pgadmin does it pretty nicely: http://pgadmin.org/images/screenshots/pgadmin3_macosx.png As shown in the mackintosh version, it is a very nice and helpful feature! I have pgadmin 1.2.0 for PostgreSQL 8.0.15 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3.2.

Re: [GENERAL] Graphical representation of query plans

2009-09-22 Thread Raymond O'Donnell
On 22/09/2009 21:48, Emi Lu wrote: > Grzegorz Jaśkiewicz wrote: >> pgadmin does it pretty nicely: >> http://pgadmin.org/images/screenshots/pgadmin3_macosx.png > > > As shown in the mackintosh version, it is a very nice and helpful feature! > > > I have pgadmin 1.2.0 for PostgreSQL 8.0.15 on i68

Re: [GENERAL] Logging statements longer than 1000ms doesn't appear to work

2009-09-22 Thread Chris Barnes
Hello, I looked for log_statement and it appears to be off? Strange. #log_statement = 'none' #log_statement_stats = off > To: compuguruchrisbar...@hotmail.com > CC: pgsql-general@postgresql.org > Subject: Re: [GENERAL] Logging statements longer than 1000ms doesn't appear > to work >

Re: [GENERAL] Logging statements longer than 1000ms doesn't appear to work

2009-09-22 Thread Gurjeet Singh
Sometimes, your current postgresql.conf might not be in sync with server settings, for various reasons. I'd suggest looking at the output of: select name, setting, source from pg_settings where name like E'log\\_%'; Best regards, On Wed, Sep 23, 2009 at 3:13 AM, Chris Barnes < compuguruchrisbar.

Re: [GENERAL] VMWare file system / database corruption

2009-09-22 Thread Greg Smith
On Mon, 21 Sep 2009, Tom Duffey wrote: Does anyone with a better understanding of PostgreSQL and VMWare know if this is an unreliable setup for PostgreSQL? I see things like "NFS" and "VMWare" and start to get worried. PostgreSQL requires one simple guarantee: that when the database writes

Re: [GENERAL] Logging statements longer than 1000ms doesn't appear to work

2009-09-22 Thread Scott Marlowe
On Tue, Sep 22, 2009 at 3:55 PM, Gurjeet Singh wrote: > Sometimes, your current postgresql.conf might not be in sync with server > settings, for various reasons. I'd suggest looking at the output of: > > select name, setting, source from pg_settings where name like E'log\\_%'; Or psql dbname sho

Re: Re[GENERAL] sources for learning PostgreSQL

2009-09-22 Thread Scott Bailey
The PostgreSQL website has excellent documentation (second only to php.net). If you already know MySQL, then you're 2/3 of the way there. You just need to get used to the quirks of PostgreSQL. A more accurate statement would be "You just need to learn where the quirks you've picked up by usi

[GENERAL] Help! Database restored with disabled triggers

2009-09-22 Thread Joe Kramer
I have database backup schema+data in text (non-compressed) format. Backup is created using "pg_dump -i -h ... -U ... -f dump.sql". I run it with "psql http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Graphical representation of query plans

2009-09-22 Thread Guillaume Lelarge
Le mardi 22 septembre 2009 à 22:48:57, Emi Lu a écrit : > Grzegorz Jaśkiewicz wrote: > > pgadmin does it pretty nicely: > > http://pgadmin.org/images/screenshots/pgadmin3_macosx.png > > As shown in the mackintosh version, it is a very nice and helpful feature! > > > I have pgadmin 1.2.0 for Post