Re: [HACKERS] GIT patch

2007-08-07 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > Tom Lane wrote: > >> So instead of pressing to try to get something into 8.3, I would rather > >> we stand back and think about it some more. > > > I understand why you are saying hold for 8.4, but this issue came up in > > the middle

Re: [HACKERS] GIT patch

2007-08-07 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> So instead of pressing to try to get something into 8.3, I would rather >> we stand back and think about it some more. > I understand why you are saying hold for 8.4, but this issue came up in > the middle of the 8.3 development cycle

Re: [HACKERS] GIT patch

2007-08-07 Thread Bruce Momjian
Tom Lane wrote: > Heikki Linnakangas <[EMAIL PROTECTED]> writes: > > Alvaro Herrera wrote: > >> At this > >> point I feel like the patch still needs some work and reshuffling before > >> it is in an acceptable state. The fact that there are some API changes > >> for which the patch needs to be adj

Re: [HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-08-07 Thread Jeremy Drake
On Tue, 7 Aug 2007, Decibel! wrote: > ISTM that having a built-in array_to_set function would be awfully > useful... Is the aggregate method below an acceptable way to do it? Umm, the array_to_set function is not an aggregate. Personally, when I need this functionality, I use this function conve

Re: [HACKERS] [GENERAL] Template zero xid issue

2007-08-07 Thread Decibel!
On Tue, Aug 07, 2007 at 06:46:05PM -0400, Tom Lane wrote: > I'm tempted to stop accepting connections once we start the shutdown > checkpoint (ie, tell the bgwriter to shut down). This would at least > limit the width of the window in which incoming connections get ignored. > We could also close t

Re: [HACKERS] 76AC-752C-3D91 : CONFIRM from pgsql-hackers (subscribe)

2007-08-07 Thread Jaime Casanova
On 8/7/07, Bertram Scharpf <[EMAIL PROTECTED]> wrote: > accept 76AC-752C-3D91 > cool, good for you -- Atentamente, Jaime Casanova "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the universe trying to produce bigger and better

Re: [HACKERS] HOT pgbench results

2007-08-07 Thread Merlin Moncure
On 8/8/07, Merlin Moncure <[EMAIL PROTECTED]> wrote: > On 8/7/07, Heikki Linnakangas <[EMAIL PROTECTED]> wrote: > > I ran some CPU intensive pgbench tests on HOT. Results are not > > surprising, HOT makes practically no difference on the total transaction > > rate, but reduces the need to vacuum: >

[HACKERS] Wrote a connect-by feature

2007-08-07 Thread Bertram Scharpf
Hi, I happened to feel need for something like Oracle's connect-by mechanism. In the contribs I found Joe Conways `tablefunc' but I missed some features there. So I had a look at the source code. First of all thanks a lot to Joe, I learned much of your code. Anyway, when I added the features I d

Re: [HACKERS] More logging for autovacuum

2007-08-07 Thread Greg Smith
On Tue, 7 Aug 2007, Decibel! wrote: Is logging really the answer for that? ISTM it'd be better to provide statistics info so that you could monitor autovacuum activity with things like cricket, SNMP, etc. There are two sides to this. One is that it's difficult to right now to tell when your

[HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-08-07 Thread Decibel!
ISTM that having a built-in array_to_set function would be awfully useful... Is the aggregate method below an acceptable way to do it? - Forwarded message from Merlin Moncure <[EMAIL PROTECTED]> - On 8/3/07, Guy Fraser <[EMAIL PROTECTED]> wrote: > On Wed, 2007-08-01 at 07:14 +0530, Merlin

Re: [HACKERS] [GENERAL] Template zero xid issue

2007-08-07 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > "Tom Lane" <[EMAIL PROTECTED]> writes: >> 4. Keep spawning a child, but mark it in the BackendList as known >> doomed, and don't count such children when deciding if it's OK to >> terminate. The problem with this idea is that such children will >> still

Re: [HACKERS] HOT patch, missing things

2007-08-07 Thread Simon Riggs
On Tue, 2007-08-07 at 16:52 -0400, Tom Lane wrote: > "Simon Riggs" <[EMAIL PROTECTED]> writes: > > On Tue, 2007-08-07 at 15:14 -0400, Tom Lane wrote: > >> "Simon Riggs" <[EMAIL PROTECTED]> writes: > >>> We also need something that will re-zero the stats when they reach > >>> anywhere near integer o

Re: [HACKERS] 76AC-752C-3D91 : CONFIRM from pgsql-hackers (subscribe)

2007-08-07 Thread Bertram Scharpf
accept 76AC-752C-3D91 ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [HACKERS] More logging for autovacuum

2007-08-07 Thread Joshua D. Drake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Decibel! wrote: > On Tue, Aug 07, 2007 at 11:59:03AM -0700, Andrew Hammond wrote: >> On 8/7/07, Tom Lane <[EMAIL PROTECTED]> wrote: >>> Peter Eisentraut <[EMAIL PROTECTED]> writes: But INFO is not shown by default. >>> INFO is mostly a hack to try

Re: [HACKERS] More logging for autovacuum

2007-08-07 Thread Decibel!
On Tue, Aug 07, 2007 at 11:59:03AM -0700, Andrew Hammond wrote: > On 8/7/07, Tom Lane <[EMAIL PROTECTED]> wrote: > > > > Peter Eisentraut <[EMAIL PROTECTED]> writes: > > > But INFO is not shown by default. > > > > INFO is mostly a hack to try to emulate VACUUM VERBOSE's ancient > > behavior before

Re: [HACKERS] GIT patch

2007-08-07 Thread Tom Lane
"Simon Riggs" <[EMAIL PROTECTED]> writes: > How hard will it be to add the infrastructure to allow new index types > to be added to the server dynamically? INSERT INTO pg_am VALUES (...); I don't really think we need more than that, at least not till non-core index AMs are a whole lot thicker on

Re: [HACKERS] HOT patch, missing things

2007-08-07 Thread Gregory Stark
"Heikki Linnakangas" <[EMAIL PROTECTED]> writes: > 2. Pointer swinging. At the moment, after a row is HOT updated, the only > way to get rid of the redirecting line pointer is to run VACUUM FULL or > CLUSTER (or delete or cold update the row and vacuum). If we want to > implement pointer swinging

Re: [HACKERS] HOT patch, missing things

2007-08-07 Thread Tom Lane
"Simon Riggs" <[EMAIL PROTECTED]> writes: > On Tue, 2007-08-07 at 15:14 -0400, Tom Lane wrote: >> "Simon Riggs" <[EMAIL PROTECTED]> writes: >>> We also need something that will re-zero the stats when they reach >>> anywhere near integer overflow, since we must not allow them to wrap. I >>> would su

Re: [HACKERS] Internal Postgre SQL documentation

2007-08-07 Thread Arthernan
On Aug 7, 1:26 pm, Arthernan <[EMAIL PROTECTED]> wrote: > I want to learn how a real database works. And I am about to > start reading the Postgre source code. > Are there any online documents that may document the code? Even > if it was a general guideline. > Any information

Re: [HACKERS] GIT patch

2007-08-07 Thread Joshua D. Drake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Simon Riggs wrote: > On Thu, 2007-08-02 at 16:12 -0400, Tom Lane wrote: > Heck, I'd much rather have bitmap and/or GIT than hash indexes any day. But hash is all about the equality man! - -- === The PostgreSQL Company: Command Prompt, Inc.

Re: [HACKERS] GIT patch

2007-08-07 Thread Simon Riggs
On Thu, 2007-08-02 at 16:12 -0400, Tom Lane wrote: > Heikki Linnakangas <[EMAIL PROTECTED]> writes: > > Alvaro Herrera wrote: > >> At this > >> point I feel like the patch still needs some work and reshuffling before > >> it is in an acceptable state. The fact that there are some API changes > >>

Re: [HACKERS] HOT patch, missing things

2007-08-07 Thread Stefan Kaltenbrunner
Heikki Linnakangas wrote: > Stefan Kaltenbrunner wrote: >> Heikki Linnakangas wrote: >>> There's three things clearly missing in the patch: >>> >>> 1. HOT updates on tables with expression or partial indexes. Hasn't been >>> done yet because it should be pretty straightforward and we've had more >>

Re: [HACKERS] HOT patch, missing things

2007-08-07 Thread Mark Mielke
Stefan Kaltenbrunner wrote: Heikki Linnakangas wrote: 2. Pointer swinging. At the moment, after a row is HOT updated, the only way to get rid of the redirecting line pointer is to run VACUUM FULL or CLUSTER (or delete or cold update the row and vacuum). If we want to implement pointer swingin

Re: [HACKERS] HOT pgbench results

2007-08-07 Thread Simon Riggs
On Tue, 2007-08-07 at 20:27 +0100, Gregory Stark wrote: > "Simon Riggs" <[EMAIL PROTECTED]> writes: > > > On Tue, 2007-08-07 at 13:16 +0100, Heikki Linnakangas wrote: > >> I ran some CPU intensive pgbench tests on HOT. Results are not > >> surprising, HOT makes practically no difference on the tot

Re: [HACKERS] HOT patch, missing things

2007-08-07 Thread Simon Riggs
On Tue, 2007-08-07 at 15:14 -0400, Tom Lane wrote: > "Simon Riggs" <[EMAIL PROTECTED]> writes: > > We also need something that will re-zero the stats when they reach > > anywhere near integer overflow, since we must not allow them to wrap. I > > would suggest we simply reset all values to zero for

Re: [HACKERS] HOT pgbench results

2007-08-07 Thread Merlin Moncure
On 8/7/07, Heikki Linnakangas <[EMAIL PROTECTED]> wrote: > I ran some CPU intensive pgbench tests on HOT. Results are not > surprising, HOT makes practically no difference on the total transaction > rate, but reduces the need to vacuum: > > unpatched HOT > tps 3680

Re: [HACKERS] HOT pgbench results

2007-08-07 Thread Gregory Stark
"Simon Riggs" <[EMAIL PROTECTED]> writes: > On Tue, 2007-08-07 at 13:16 +0100, Heikki Linnakangas wrote: >> I ran some CPU intensive pgbench tests on HOT. Results are not >> surprising, HOT makes practically no difference on the total transaction >> rate, but reduces the need to vacuum: >> ... > N

Re: [HACKERS] HOT pgbench results

2007-08-07 Thread Simon Riggs
On Tue, 2007-08-07 at 13:16 +0100, Heikki Linnakangas wrote: > I ran some CPU intensive pgbench tests on HOT. Results are not > surprising, HOT makes practically no difference on the total transaction > rate, but reduces the need to vacuum: > > unpatched HOT > tps

Re: [HACKERS] HOT patch, missing things

2007-08-07 Thread Heikki Linnakangas
Stefan Kaltenbrunner wrote: > Heikki Linnakangas wrote: >> There's three things clearly missing in the patch: >> >> 1. HOT updates on tables with expression or partial indexes. Hasn't been >> done yet because it should be pretty straightforward and we've had more >> important things to do. Though n

Re: [HACKERS] Internal Postgre SQL documentation

2007-08-07 Thread Cantor
On Aug 7, 1:26 pm, Arthernan <[EMAIL PROTECTED]> wrote: > I want to learn how a real database works. And I am about to > start reading the Postgre source code. > > Are there any online documents that may document the code? Even > if it was a general guideline. > > Any information

Re: [HACKERS] HOT pgbench results

2007-08-07 Thread Simon Riggs
On Tue, 2007-08-07 at 15:40 +0100, Heikki Linnakangas wrote: > Tom Lane wrote: > > Heikki Linnakangas <[EMAIL PROTECTED]> writes: > >>unpatched HOT > >> autovacuums116 43 > >> autoanalyzes 139 60 > > > >> HOT greatly reduces the number o

Re: [HACKERS] HOT patch, missing things

2007-08-07 Thread Tom Lane
"Simon Riggs" <[EMAIL PROTECTED]> writes: > We also need something that will re-zero the stats when they reach > anywhere near integer overflow, since we must not allow them to wrap. I > would suggest we simply reset all values to zero for that table. pgstat counters are int64.

Re: [HACKERS] [GENERAL] Template zero xid issue

2007-08-07 Thread Gregory Stark
"Tom Lane" <[EMAIL PROTECTED]> writes: > 4. Keep spawning a child, but mark it in the BackendList as known > doomed, and don't count such children when deciding if it's OK to > terminate. The problem with this idea is that such children will > still be connected to shared memory, and we really do

Re: [HACKERS] HOT patch, missing things

2007-08-07 Thread Simon Riggs
On Tue, 2007-08-07 at 19:01 +0100, Heikki Linnakangas wrote: > There's three things clearly missing in the patch: > > 1. HOT updates on tables with expression or partial indexes. Hasn't been > done yet because it should be pretty straightforward and we've had more > important things to do. Though

Re: [HACKERS] More logging for autovacuum

2007-08-07 Thread Andrew Hammond
On 8/7/07, Tom Lane <[EMAIL PROTECTED]> wrote: > > Peter Eisentraut <[EMAIL PROTECTED]> writes: > > But INFO is not shown by default. > > INFO is mostly a hack to try to emulate VACUUM VERBOSE's ancient > behavior before we redesigned the elog levels. It's intended for > controlling messages that

[HACKERS] Internal Postgre SQL documentation

2007-08-07 Thread Arthernan
I want to learn how a real database works. And I am about to start reading the Postgre source code. Are there any online documents that may document the code? Even if it was a general guideline. Any information will be greatly appreciated. Arturo Hernandez --

Re: [HACKERS] HOT patch, missing things

2007-08-07 Thread Stefan Kaltenbrunner
Heikki Linnakangas wrote: > There's three things clearly missing in the patch: > > 1. HOT updates on tables with expression or partial indexes. Hasn't been > done yet because it should be pretty straightforward and we've had more > important things to do. Though not critical, should be finished be

Re: [HACKERS] More logging for autovacuum

2007-08-07 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > But INFO is not shown by default. INFO is mostly a hack to try to emulate VACUUM VERBOSE's ancient behavior before we redesigned the elog levels. It's intended for controlling messages that should go to a client because the client asked for them, and

Re: [HACKERS] [GENERAL] Template zero xid issue

2007-08-07 Thread Tom Lane
[ redirected to -hackers for discussion of bug fix ] "Keaton Adams" <[EMAIL PROTECTED]> writes: > Some additional information I just received from one of the operations > personnel: > 1. I set pg_database.datallowconn to true on template0 in an attempt to > log into the database with psql and per

[HACKERS] HOT patch, missing things

2007-08-07 Thread Heikki Linnakangas
There's three things clearly missing in the patch: 1. HOT updates on tables with expression or partial indexes. Hasn't been done yet because it should be pretty straightforward and we've had more important things to do. Though not critical, should be finished before release in my opinion. 2. Poin

Re: [HACKERS] [PATCHES] HOT patch - version 11

2007-08-07 Thread Pavan Deolasee
On 8/2/07, Pavan Deolasee <[EMAIL PROTECTED]> wrote: > > > > > . It would also be better if we didn't emit a > > separate WAL record for defraging a page, if we also prune it at the > > same time. I'm not that worried about WAL usage in general, but that > > seems simple enough to fix. > > > > Ah I

Re: [HACKERS] HOT patch - version 13

2007-08-07 Thread Decibel!
On Tue, Aug 07, 2007 at 06:53:48PM +0100, Simon Riggs wrote: > On Tue, 2007-08-07 at 18:25 +0530, Pavan Deolasee wrote: > > > I am posting the version 13 of HOT patch on pgsql-patches. It > > includes the changes based on feedback received on version 11. > > I think we need a change log, so we ca

Re: [HACKERS] HOT patch - version 13

2007-08-07 Thread Simon Riggs
On Tue, 2007-08-07 at 18:25 +0530, Pavan Deolasee wrote: > I am posting the version 13 of HOT patch on pgsql-patches. It > includes the changes based on feedback received on version 11. I think we need a change log, so we can see which feedback has resulted in changes and which has not. Otherwise

Re: [HACKERS] .NET driver

2007-08-07 Thread Decibel!
On Mon, Aug 06, 2007 at 03:55:14PM -0400, Robert Treat wrote: > On Saturday 04 August 2007 09:45, Magnus Hagander wrote: > > Rohit Khare wrote: > > > Seeing the history of PostgreSQL development, following features are > > > expected in pgAdmin: > > > > > > (1) Facility to insert a column in betwee

Re: [HACKERS] More logging for autovacuum

2007-08-07 Thread Peter Eisentraut
Tom Lane wrote: > > Yes, by default or at least at no level higher than INFO. > > No, NOT by default.  Our users have made it perfectly clear that they > don't want the logs cluttered with high-volume information about > non-error normal workings of the system.  Every time we have caused > the syst

Re: [HACKERS] More logging for autovacuum

2007-08-07 Thread Tom Lane
"Joshua D. Drake" <[EMAIL PROTECTED]> writes: > With 8.3 having autovacuum on by default, we really should be logging at > a mininum: > autovacuum start > autovacuum working (what am I working on but not what I am doing, > meaning we don't need tuple information etc..) > autovacuum stop > Yes, by

Re: [HACKERS] HOT pgbench results

2007-08-07 Thread Mark Mielke
Heikki Linnakangas wrote: Tom Lane wrote: Heikki Linnakangas <[EMAIL PROTECTED]> writes: HOT greatly reduces the number of vacuums needed. That's good, that's where the gains in throughput in longer I/O bound runs comes from. But surely failing to auto-analyze after a HOT update

Re: [HACKERS] More logging for autovacuum

2007-08-07 Thread Joshua D. Drake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dimitri Fontaine wrote: > Le mardi 07 août 2007, Tom Lane a écrit : >> Gregory Stark <[EMAIL PROTECTED]> writes: >>> log_autovacuum_jobs - output every time a vacuum or analyze *starts* > [...] >>> I would also suggest raising the level of the DEBUG2 m

Re: [HACKERS] HOT pgbench results

2007-08-07 Thread Zeugswetter Andreas ADI SD
> > unpatched HOT > > autovacuums 116 43 > > autoanalyzes139 60 > > > HOT greatly reduces the number of vacuums needed. That's > good, that's > > where the gains in throughput in longer I/O bound runs comes from. > > But surely failing to

Re: [HACKERS] More logging for autovacuum

2007-08-07 Thread Gregory Stark
"Tom Lane" <[EMAIL PROTECTED]> writes: > Gregory Stark <[EMAIL PROTECTED]> writes: >> I would also suggest raising the level of the DEBUG2 message indicating why >> tables were chosen or not. At least to DEBUG1 if not to INFO. > > It's not acceptable for autovacuum to be cluttering the log by def

Re: [HACKERS] More logging for autovacuum

2007-08-07 Thread Dimitri Fontaine
Le mardi 07 août 2007, Tom Lane a écrit : > Gregory Stark <[EMAIL PROTECTED]> writes: > > log_autovacuum_jobs - output every time a vacuum or analyze *starts* [...] > > I would also suggest raising the level of the DEBUG2 message indicating > > why tables were chosen or not. At least to DEBUG1 if n

Re: [HACKERS] More logging for autovacuum

2007-08-07 Thread Matthew T. O'Connor
Gregory Stark wrote: I'm having trouble following what's going on with autovacuum and I'm finding the existing logging insufficient. In particular that it's only logging vacuum runs *after* the vacuum finishes makes it hard to see what vacuums are running at any given time. Also, I want to see wh

Re: [HACKERS] HOT pgbench results

2007-08-07 Thread Heikki Linnakangas
Tom Lane wrote: > Heikki Linnakangas <[EMAIL PROTECTED]> writes: >> unpatched HOT >> autovacuums 116 43 >> autoanalyzes 139 60 > >> HOT greatly reduces the number of vacuums needed. That's good, that's >> where the gains in throughput in longer I/O

Re: [HACKERS] More logging for autovacuum

2007-08-07 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > I would also suggest raising the level of the DEBUG2 message indicating why > tables were chosen or not. At least to DEBUG1 if not to INFO. It's not acceptable for autovacuum to be cluttering the log by default. regards, tom lane

[HACKERS] More logging for autovacuum

2007-08-07 Thread Gregory Stark
I'm having trouble following what's going on with autovacuum and I'm finding the existing logging insufficient. In particular that it's only logging vacuum runs *after* the vacuum finishes makes it hard to see what vacuums are running at any given time. Also, I want to see what is making autovacuu

Re: [HACKERS] HOT pgbench results

2007-08-07 Thread Tom Lane
Heikki Linnakangas <[EMAIL PROTECTED]> writes: > unpatched HOT > autovacuums 116 43 > autoanalyzes 139 60 > HOT greatly reduces the number of vacuums needed. That's good, that's > where the gains in throughput in longer I/O bound runs comes from.

[HACKERS] HOT patch - version 13

2007-08-07 Thread Pavan Deolasee
I am posting the version 13 of HOT patch on pgsql-patches. It includes the changes based on feedback received on version 11. There is also a bug fix in crash recovery of hard chain pruning during VACUUM FULL. Thanks, Pavan -- Pavan Deolasee EnterpriseDB http://www.enterprisedb.com

[HACKERS] HOT pgbench results

2007-08-07 Thread Heikki Linnakangas
I ran some CPU intensive pgbench tests on HOT. Results are not surprising, HOT makes practically no difference on the total transaction rate, but reduces the need to vacuum: unpatched HOT tps 36803790 WAL written(MB) 53864804 checkpoin