Re: [GENERAL] Slow first query despite LIMIT and OFFSET clause

2009-01-28 Thread Alban Hertroys
On Jan 29, 2009, at 1:35 AM, Phoenix Kiula wrote: On Thu, Jan 29, 2009 at 2:25 AM, Alban Hertroys wrote: Ah I see, that's the original query and its plan again, not the one after implementing those triggers! You had me scratching my head for a bit there, wondering why the count() subquery

Re: [GENERAL] New 8.4 hot standby feature

2009-01-28 Thread Simon Riggs
On Tue, 2009-01-27 at 12:53 -0500, Gabi Julien wrote: > I have merged the last hot standby patch (v9g) to 8.4 devel and I am pleased > with the experience. This is promising stuff. Thanks, > Perhaps it is a bit too soon to > ask questions here but here it is: Thanks very much for the bug r

Re: [GENERAL] libpq binary format for contrib/cube type?

2009-01-28 Thread aws
OK, I found another way to send the data using the array format and "cube($1::float8[])". Thanks! Andy. On Jan 28, 2009, at 2:47 PM, Tom Lane wrote: There isn't one --- contrib/cube doesn't provide send/receive functions at all. regards, tom lane -- Sent via pgsql

Re: [GENERAL] possible pg_dump bug

2009-01-28 Thread Asko Oja
Hi For the record. Using search_path for schema name handling is most annoying feature of pg_dump for us. I have run into many cases where separating schema is inconvenient but don't seem to remember any upsides. regards Asko On Wed, Jan 28, 2009 at 7:39 PM, Tom Lane wrote: > "Raymond O'Donnel

Re: [GENERAL] Disabling FK for tables in Postgresql

2009-01-28 Thread A. Kretschmer
In response to Josh Harrison : > Hi > Is it possible to disable FK constraints in Postgresql? You can set the constraint deferred (if the constraint defined deferrable) or drop the constraint. http://www.postgresql.org/docs/current/static/sql-set-constraints.html Regards, Andreas -- Andreas Kr

Re: [GENERAL] System table documentation

2009-01-28 Thread Tony Caduto
Bill Todd wrote: Where can I find documentation for the system tables? I have not found anything in the 8.3.1 documentation. Thanks. Bill Hi Bill, Good to see a Delphi guy here :-) http://www.postgresql.org/docs/8.3/interactive/catalogs.html Later, Tony Caduto AM Software Design http://w

[GENERAL] Disabling FK for tables in Postgresql

2009-01-28 Thread Josh Harrison
Hi Is it possible to disable FK constraints in Postgresql? Thanks Josh

Re: [GENERAL] System table documentation

2009-01-28 Thread Steve Crawford
Bill Todd wrote: Where can I find documentation for the system tables? I have not found anything in the 8.3.1 documentation. Thanks. Bill http://www.postgresql.org/docs/8.3/static/catalogs.html Cheers, Steve -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make chang

[GENERAL] System table documentation

2009-01-28 Thread Bill Todd
Where can I find documentation for the system tables? I have not found anything in the 8.3.1 documentation. Thanks. Bill -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Slow first query despite LIMIT and OFFSET clause

2009-01-28 Thread Phoenix Kiula
On Thu, Jan 29, 2009 at 2:25 AM, Alban Hertroys wrote: > Ah I see, that's the original query and its plan again, not the one after > implementing those triggers! You had me scratching my head for a bit there, > wondering why the count() subquery was still there. Yes that was just for info. He

Re: [GENERAL] New 8.4 hot standby feature

2009-01-28 Thread Gabi Julien
On Wednesday 28 January 2009 18:35:18 Gabi Julien wrote: > On Tuesday 27 January 2009 21:47:36 you wrote: > > Hi, > > > > On Wed, Jan 28, 2009 at 4:28 AM, Gabi Julien > > wrote: > > > Yes, the logs are shipped every minute but the recevory is 3 or 4 times > > > longer. > > > > Are you disabling fu

Re: [GENERAL] New 8.4 hot standby feature

2009-01-28 Thread Gabi Julien
On Tuesday 27 January 2009 21:47:36 you wrote: > Hi, > > On Wed, Jan 28, 2009 at 4:28 AM, Gabi Julien wrote: > > Yes, the logs are shipped every minute but the recevory is 3 or 4 times > > longer. > > Are you disabling full_page_writes? It may slow down recovery several > times. It looks like yo

Re: [GENERAL] libpq binary format for contrib/cube type?

2009-01-28 Thread Tom Lane
aws writes: > I'm using libpq with a prepared query, and I'd like to access the > contrib/cube type using the binary format. The documentation > describes the text format for cubes but doesn't say what the binary > format is. There isn't one --- contrib/cube doesn't provide send/receive fu

[GENERAL] libpq binary format for contrib/cube type?

2009-01-28 Thread aws
I'm using libpq with a prepared query, and I'd like to access the contrib/cube type using the binary format. The documentation describes the text format for cubes but doesn't say what the binary format is. I glanced at the source code but... its complicated. :) Any help is appreciated.

Re: [GENERAL] very long update gin index troubles back?

2009-01-28 Thread Oleg Bartunov
On Wed, 28 Jan 2009, Ivan Sergio Borgonovo wrote: On Tue, 27 Jan 2009 20:45:53 +0300 Teodor Sigaev wrote: No matter if I drop the trigger that update agg content and the fact that I'm just updating d, postgresql will update the index? Yes, due to MVCC. Update of row could produce new version

Re: [GENERAL] very long update gin index troubles back?

2009-01-28 Thread Ivan Sergio Borgonovo
On Tue, 27 Jan 2009 20:45:53 +0300 Teodor Sigaev wrote: > > No matter if I drop the trigger that update agg content and the > > fact that I'm just updating d, postgresql will update the index? > Yes, due to MVCC. Update of row could produce new version (tuple) > and new version should be index as

Re: Fwd: Re: [GENERAL] New 8.4 hot standby feature

2009-01-28 Thread Gabi Julien
On Tuesday 27 January 2009 16:25:44 you wrote: > On Tue, 2009-01-27 at 14:28 -0500, Gabi Julien wrote: > > Could this help? If the logs are smaller then I could potentially afford > > shipping then at a higher frequency. > > See if there are times during which the recovery process isn't doing > any

Re: [GENERAL] Slow first query despite LIMIT and OFFSET clause

2009-01-28 Thread Alban Hertroys
On Jan 28, 2009, at 1:38 PM, Phoenix Kiula wrote: Thanks Alban. We have now made all the triggers and such. That part is working. I suppose not having the count(id) is helping just with a few seconds, but the query is still taking about 15 seconds in some cases. Here are the query and its exec

Re: [GENERAL] possible pg_dump bug

2009-01-28 Thread Tom Lane
"Raymond O'Donnell" writes: > On 28/01/2009 17:09, David Miller wrote: >> Pg Dump does not include schema name on insert statement generated >> from pg_dump with a -d option when exporting data for a particular >> table using the -t . in version 8.3. I believe this >> same bug exists in 8.4 but ha

Re: [GENERAL] possible pg_dump bug

2009-01-28 Thread Joao Ferreira gmail
On Wed, 2009-01-28 at 09:09 -0800, David Miller wrote: > Pg Dump does not include schema name on insert statement generated from > pg_dump with a -d option when exporting data for a particular table using the > -t . in version 8.3. I believe this same bug exists in 8.4 but > have not confirmed i

Re: [GENERAL] possible pg_dump bug

2009-01-28 Thread Raymond O'Donnell
On 28/01/2009 17:09, David Miller wrote: > Pg Dump does not include schema name on insert statement generated > from pg_dump with a -d option when exporting data for a particular > table using the -t . in version 8.3. I believe this > same bug exists in 8.4 but have not confirmed it. I believe pg_d

[GENERAL] possible pg_dump bug

2009-01-28 Thread David Miller
Pg Dump does not include schema name on insert statement generated from pg_dump with a -d option when exporting data for a particular table using the -t . in version 8.3. I believe this same bug exists in 8.4 but have not confirmed it. I believe pg_dump should have an option to retain schema in

Re: [GENERAL] [lapug] Seeking volunteers for SCALE (one more time)

2009-01-28 Thread Richard Broersma
On Tue, Jan 27, 2009 at 5:49 PM, Noel Proffitt wrote: > I'm available to volunteer for a couple of hours or so. Let me know what time > slots you're looking to cover. Thanks Noel. The schedule will be pretty flexible. Any times between Saturday and Sunday will be fine. -- Regards, Richard B

Re: [GENERAL] New 8.4 hot standby feature

2009-01-28 Thread Fujii Masao
Hi, On Thu, Jan 29, 2009 at 12:23 AM, Jason Long wrote: > Is pg_clearxlogtail going to be in contrib or integrated in some other way? I also hope so. The related topic was discussed before. http://archives.postgresql.org/pgsql-hackers/2009-01/msg00639.php Regards, -- Fujii Masao NIPPON TELEGR

Re: [GENERAL] New 8.4 hot standby feature

2009-01-28 Thread Jason Long
Fujii Masao wrote: Hi, On Wed, Jan 28, 2009 at 4:28 AM, Gabi Julien wrote: Yes, the logs are shipped every minute but the recevory is 3 or 4 times longer. Are you disabling full_page_writes? It may slow down recovery several times. Thanks I will take a look at it. Also, I came a

Re: [GENERAL] PG's suitability for high volume environment (many INSERTs and lots of aggregation reporting)

2009-01-28 Thread Gregory Stark
Phoenix Kiula writes: > My question: with that kind of volume and the underlying aggregation > functions (by product id, dates, possibly IP addresses or at least > countries of origin..) will PG ever be a good choice? Well, only you're able to judge that for your own data and use cases. Your q

[GENERAL] PG's suitability for high volume environment (many INSERTs and lots of aggregation reporting)

2009-01-28 Thread Phoenix Kiula
Hi. Further to my bafflement with the "count(*)" queries as described in this thread: http://archives.postgresql.org/pgsql-general/2009-01/msg00804.php It seems that whenever this question has come up, Postgresql comes up very short in terms of "count(*)" functions. The performance is always slo

Re: [GENERAL] Slow first query despite LIMIT and OFFSET clause

2009-01-28 Thread Phoenix Kiula
On Wed, Jan 28, 2009 at 2:37 AM, Alban Hertroys wrote: > > Does that query plan look any better without the select count(id) from > testimonials? > > If so you may be better off keeping track of those counts in a separate > table updated by triggers on the testimonials table. Whether that really >

[GENERAL] PostgreSQL for a mission critical system

2009-01-28 Thread Andrés Robinet
Greetings everyone, I'm new to this list (No, I'm not about to ask how to install pgsql on Windows 3.11!) We are involved with a financial project, similar to Paypal (Web Payments Standard/Payment Buttons) but the scope and functionality is much narrower. This project will be released in a market

[GENERAL] Killing an offending process without restarting Postgresql safe?

2009-01-28 Thread Philippe Lang
Hi, I added an index on a Postgresql 7.4 database this morning (about 50 concurrent users), and then deleted it. I noticed the delete took too much time to complete, so I logged on the server, and did a "ps -afxu". I saw a process was stuck in a "drop index waiting" state, and several others in a

Re: [GENERAL] About PostgreSQL Installer

2009-01-28 Thread Dave Page
2009/1/28 fatih arıkan : > Hi all, > > I want to make an installer like postgresql-8.3.msi and > postgresql-8.3-int.msi. I want after one msi runs, another msi will run. I > want to ask where can I find sources of these msi installers. I have > found postgresql-8.3-int.msi wix sources but I couldn'

Re: [GENERAL] Feature request dblink: Security issue - dblink user+password parameters must be optional

2009-01-28 Thread Marko Kreen
On 1/28/09, Hermann Muster wrote: > When creating a view via DBLINK, the user=... and password=... parameters > shall be optional. If they are left out, then the current user accessing the > view shall be impersonated implicitely to the "dblinked" database as well. > Forcing anybody to hardcode a

Re: [GENERAL] Rollback of Query Cancellation

2009-01-28 Thread Sim Zacks
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Abdul Rahman wrote: > Very nice! > Most probably it was waiting for something else. This is the reason the > query executed today and clearly showed certain number of rows deleted. > But what ELSE? > It could be a ton of things, but as an example, if

[GENERAL] Feature request dblink: Security issue - dblink user+password parameters must be optional

2009-01-28 Thread Hermann Muster
When creating a view via DBLINK, the user=... and password=... parameters shall be optional. If they are left out, then the current user accessing the view shall be impersonated implicitely to the "dblinked" database as well. Forcing anybody to hardcode a password readable within the view defin

Re: [GENERAL] Rollback of Query Cancellation

2009-01-28 Thread Abdul Rahman
Well Jaime, I executed all the delete queries one by one. Now I am unable to understand that why it took sufficient time to run the last query before cancellation. i.e. delete from ci_cif_v where req_id='0824100207'; This morning it performed the delete operation and deleted certain number of

[GENERAL] About PostgreSQL Installer

2009-01-28 Thread fatih arıkan
Hi all, I want to make an installer like postgresql-8.3.msi and postgresql-8.3-int.msi. I want after one msi runs, another msi will run. I want to ask where can I find sources of these msi installers. I have found postgresql-8.3-int.msi wix sources but I couldn't find postgresql-8.3.msi source