Re: [HACKERS] Units in postgresql.conf -- How to report?

2006-07-24 Thread Albe Laurenz
Peter Eisentraut wrote: > So assuming we allowed units in postgresql.conf, how would you report > them with SHOW? > > 1. The way they were set (hard) > > 2. Without units (not user-friendly) > > 3. Always in base units (seconds or bytes) > > 4. The largest unit that gives an integer > > (4) s

Re: [HACKERS] On-disk bitmap index patch

2006-07-24 Thread Luke Lonergan
I think we do know, have you reviewed the results in the briefing? - Luke Sent from my GoodLink synchronized handheld (www.good.com) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 25, 2006 01:09 AM Eastern Standard Time To: Tom Lane Cc

Re: [HACKERS] On-disk bitmap index patch

2006-07-24 Thread mark
On Tue, Jul 25, 2006 at 12:36:42AM -0400, Tom Lane wrote: > [EMAIL PROTECTED] writes: > > Reading 1/4, for a larger table, has a good chance of being faster than > > reading 4/4 of the table. :-) > Really? > > If you have to hit one tuple out of four, it's pretty much guaranteed > that you will ne

Re: [HACKERS] Better name/syntax for "online" index creation

2006-07-24 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > OK, how about CREATE INDEX x NOLOCK ON tab ... Please don't use it as > the first word. I am afraid we would regret that. > Or maybe CREATE INDEX x ON tab NOLOCK Having the NOLOCK > associated with the table name makes sense. psql would be a lot h

Re: [HACKERS] Better name/syntax for "online" index creation

2006-07-24 Thread Bruce Momjian
Tom Lane wrote: > Alvaro Herrera <[EMAIL PROTECTED]> writes: > > Bruce Momjian wrote: > >> Oh, psql needs to know before the command is sent? How do we handle it > >> now with CLUSTER? > > > We don't, which is exactly the problem. If I'm not mistaken, currently > > psql in autocommit off mode, C

Re: [HACKERS] [PATCHES] pgstattuple extension for indexes

2006-07-24 Thread Tom Lane
ITAGAKI Takahiro <[EMAIL PROTECTED]> writes: > Do we add pgstatindex as a new contrib module, > or merge it into contrib/pgstattuple? I believe Alvaro was suggesting that you should add it as an additional SQL function within contrib/pgstattuple. That'd be my advice too --- I don't see a reason t

Re: [HACKERS] Better name/syntax for "online" index creation

2006-07-24 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > Bruce Momjian wrote: >> Oh, psql needs to know before the command is sent? How do we handle it >> now with CLUSTER? > We don't, which is exactly the problem. If I'm not mistaken, currently > psql in autocommit off mode, CLUSTER doesn't start a transac

Re: [HACKERS] On-disk bitmap index patch

2006-07-24 Thread Tom Lane
[EMAIL PROTECTED] writes: > Reading 1/4, for a larger table, has a good chance of being faster than > reading 4/4 of the table. :-) Really? If you have to hit one tuple out of four, it's pretty much guaranteed that you will need to fetch every heap page. So using an index provides zero I/O savin

Re: [HACKERS] Help! - Slony-I - saving/setting/restoring GUC

2006-07-24 Thread Tom Lane
Chris Browne <[EMAIL PROTECTED]> writes: > In support of PG 8.2, we need to have the log trigger function do the > following: > - Save value of standards_conforming_string > - Set value of standards_conforming_string to FALSE This is a good idea why exactly? What are you even expecting it to

Re: [HACKERS] effective_cache_size is a real?

2006-07-24 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Is it intentional that effective_cache_size is a real (as opposed to > integer)? Yes --- the planner generally does all that stuff in float arithmetic to avoid worrying about overflow. regards, tom lane -

Re: [HACKERS] On-disk bitmap index patch

2006-07-24 Thread Mark Kirkwood
Jie Zhang wrote: On 7/24/06 6:59 AM, "Hannu Krosing" <[EMAIL PROTECTED]> wrote: And also for AND-s of several indexes, where indexes are BIG, your btree indexes may be almost as big as tables but the resulting set of pages is small. Yeah, Hannu points it out very well -- the bitmap index w

Re: [HACKERS] Better name/syntax for "online" index creation

2006-07-24 Thread Alvaro Herrera
Bruce Momjian wrote: > > Anyway, if you want psql to easily identify it, just return NOLOCK as > > part of the command string returned: > > > > test=> create index i on test(x); > > CREATE INDEX NOLOCK > > Oh, psql needs to know before the command is sent? How do we handle it > now with

Re: [HACKERS] Making config file parser available to add-ins

2006-07-24 Thread Bruce Momjian
Marc Munro wrote: -- Start of PGP signed section. > On Mon, 2006-07-24 at 15:17 -0400, Tom Lane wrote: > > No, being able to do that is exactly the point of the custom-GUC > > mechanism. > > Excellent. I shall study this and hope to bother you no further :-) > And in 8.2, postgresql.conf can in

Re: [HACKERS] Better name/syntax for "online" index creation

2006-07-24 Thread Bruce Momjian
Bruce Momjian wrote: > Rod Taylor wrote: > > Sorry, hit send too quickly. > > > > NOLOCK is kinda like NOWAIT, except implies that the command will not > > take a strong lock instead of stating that it will not wait for one. > > > > On Mon, 2006-07-24 at 11:20 -0400, Rod Taylor wrote: > > > >

Re: [HACKERS] Better name/syntax for "online" index creation

2006-07-24 Thread Bruce Momjian
Rod Taylor wrote: > Sorry, hit send too quickly. > > NOLOCK is kinda like NOWAIT, except implies that the command will not > take a strong lock instead of stating that it will not wait for one. > > On Mon, 2006-07-24 at 11:20 -0400, Rod Taylor wrote: > > > SHARED CREATE INDEX I like NOLOC

Re: [HACKERS] [PATCHES] LDAP patch & feature freeze

2006-07-24 Thread Bruce Momjian
Tom Lane wrote: > "Albe Laurenz" <[EMAIL PROTECTED]> writes: > > Any chance that my LDAP patch > > http://momjian.us/mhonarc/patches/msg0.html > > will get reviewed before the feature freeze? > > Feature freeze is the deadline for patch submission, not patch application. Right, and it will be

Re: [HACKERS] On-disk bitmap index patch

2006-07-24 Thread mark
On Mon, Jul 24, 2006 at 09:04:28PM -0400, Bruce Momjian wrote: > Jie Zhang wrote: > > > IIRC they quoted the cardinality of 1 as something that is still > > > faster than btree for several usecases. > > > > > > And also for AND-s of several indexes, where indexes are BIG, your btree > > > inde

Re: [HACKERS] On-disk bitmap index patch

2006-07-24 Thread Gavin Sherry
On Mon, 24 Jul 2006, Bruce Momjian wrote: > Jie Zhang wrote: > > > IIRC they quoted the cardinality of 1 as something that is still > > > faster than btree for several usecases. > > > > > > And also for AND-s of several indexes, where indexes are BIG, your btree > > > indexes may be almost as

Re: [HACKERS] On-disk bitmap index patch

2006-07-24 Thread Jie Zhang
On 7/24/06 6:04 PM, "Bruce Momjian" <[EMAIL PROTECTED]> wrote: > Jie Zhang wrote: >>> IIRC they quoted the cardinality of 1 as something that is still >>> faster than btree for several usecases. >>> >>> And also for AND-s of several indexes, where indexes are BIG, your btree >>> indexes may

Re: [HACKERS] RESET CONNECTION?

2006-07-24 Thread Bruce Momjian
Tatsuo Ishii wrote: > > Alvaro Herrera wrote: > > > Bruce Momjian wrote: > > > > Mario Weilguni wrote: > > > > > Will this patch make it into 8.2? > > > > > http://archives.postgresql.org/pgsql-patches/2004-12/msg00228.php > > > > > > > > > > It's a really nice feature, would be extremly useful wi

Re: [HACKERS] Units in postgresql.conf -- How to report?

2006-07-24 Thread David Fetter
On Mon, Jul 24, 2006 at 11:13:53PM +0200, Peter Eisentraut wrote: > So assuming we allowed units in postgresql.conf, how would you report > them with SHOW? > > 1. The way they were set (hard) > > 2. Without units (not user-friendly) > > 3. Always in base units (seconds or bytes) > > 4. The lar

Re: [HACKERS] On-disk bitmap index patch

2006-07-24 Thread Bruce Momjian
Jie Zhang wrote: > > IIRC they quoted the cardinality of 1 as something that is still > > faster than btree for several usecases. > > > > And also for AND-s of several indexes, where indexes are BIG, your btree > > indexes may be almost as big as tables but the resulting set of pages is > > sm

Re: [HACKERS] pg_dump: add option to ignore TABLE DATA for failed TABLE object creation

2006-07-24 Thread Jim Nasby
You should submit to -patches; at least that it should either get into the queue or you should get a reason why it didn't. On Jul 17, 2006, at 4:27 PM, Martin Pitt wrote: some time ago I started a discussion [1] here about modifying pg_dump to not restore TABLE DATA objects if the correspondin

Re: [HACKERS] On-disk bitmap index patch

2006-07-24 Thread Jie Zhang
On 7/24/06 6:59 AM, "Hannu Krosing" <[EMAIL PROTECTED]> wrote: > Ühel kenal päeval, P, 2006-07-23 kell 20:25, kirjutas Tom Lane: >> Gavin Sherry <[EMAIL PROTECTED]> writes: >>> On Sun, 23 Jul 2006, Tom Lane wrote: However, the main problem I've got with this is that a new index AM is a

Re: [HACKERS] Windows buildfarm support, or lack of it

2006-07-24 Thread Jim Nasby
On Jul 16, 2006, at 3:08 PM, Andrew Dunstan wrote: Kris Jurka wrote: For my cygwin buildfarm member I setup cron, but the make step failed for every build for unknown reasons while succeeding if not run from cron. Is this still happening? We should try to get to the bottom of it. Try s

Re: [HACKERS] [PATCHES] Resurrecting per-page cleaner for btree

2006-07-24 Thread Bruce Momjian
Tom Lane wrote: > ITAGAKI Takahiro <[EMAIL PROTECTED]> writes: > > This is a revised patch originated by Junji TERAMOTO for HEAD. > > [BTree vacuum before page splitting] > > http://archives.postgresql.org/pgsql-patches/2006-01/msg00301.php > > I think we can resurrect his idea because we will

Re: [HACKERS] plPHP and plRuby

2006-07-24 Thread Joshua D. Drake
Peter Eisentraut wrote: Joshua D. Drake wrote: What do you want to hear? I have my emails in correspondence asking for the relicense and the approval to submit. Is there something specific you are looking for? Either the author is going to abandon development, then it might make sense to pic

Re: [HACKERS] Help! - Slony-I - saving/setting/restoring GUC

2006-07-24 Thread Peter Eisentraut
Chris Browne wrote: > In support of PG 8.2, we need to have the log trigger function do the > following: > - Save value of standards_conforming_string > - Set value of standards_conforming_string to FALSE > - proceed with saving data to sl_log_? > - Recover value of standards_conforming_str

[HACKERS] Help! - Slony-I - saving/setting/restoring GUC

2006-07-24 Thread Chris Browne
In support of PG 8.2, we need to have the log trigger function do the following: - Save value of standards_conforming_string - Set value of standards_conforming_string to FALSE - proceed with saving data to sl_log_? - Recover value of standards_conforming_string The variable, standards_co

Re: [HACKERS] effective_cache_size is a real?

2006-07-24 Thread Josh Berkus
Peter, Is it intentional that effective_cache_size is a real (as opposed to integer)? The initial revision of guc.c already has it that way, so it was probably blindly adapted from the previous adhockery that had all planner variables be doubles. I beleive that it's a real because the oth

Re: [HACKERS] [Fwd: dblink patch - Asynchronous queries and parallel

2006-07-24 Thread Josh Berkus
Joe Conway wrote: (cross-posted from PATCHES without the attachement) I just received this (offlist), and have not had a chance to review it myself yet, but figured I should post it now in case others want to have a look and comment or discuss before feature freeze. Is there a downside to this

[HACKERS] Back online; Trip postponed

2006-07-24 Thread Bruce Momjian
FYI, I have been offline for the past few days because of storm damage in my area. Things have been repaired and my server is back online. Also, my trip to the UK, India, and Pakistan that I announced at our 10th anniversary has been postponed until September. -- Bruce Momjian [EMAIL PROTEC

Re: [HACKERS] effective_cache_size is a real?

2006-07-24 Thread Simon Riggs
On Mon, 2006-07-24 at 22:55 +0200, Peter Eisentraut wrote: > Is it intentional that effective_cache_size is a real (as opposed to > integer)? The initial revision of guc.c already has it that way, so it > was probably blindly adapted from the previous adhockery that had all > planner variables

Re: [HACKERS] TODO: Mark change-on-restart-only values in

2006-07-24 Thread Peter Eisentraut
Jim Nasby wrote: > If memory serves, we also wanted to have the postmaster log a warning > if it reloaded postgresql.conf and found values that had changed but > wouldn't take effect until restart. It already does that. -- Peter Eisentraut http://developer.postgresql.org/~petere/ --

[HACKERS] Units in postgresql.conf -- How to report?

2006-07-24 Thread Peter Eisentraut
So assuming we allowed units in postgresql.conf, how would you report them with SHOW? 1. The way they were set (hard) 2. Without units (not user-friendly) 3. Always in base units (seconds or bytes) 4. The largest unit that gives an integer (4) seems the most reasonable to me in terms of inter

Re: [HACKERS] Better name/syntax for "online" index creation

2006-07-24 Thread Alvaro Herrera
Peter Eisentraut wrote: > Greg Stark wrote: > > One thing to think about, what will the command to execute stored > > procedures look like? Those will also need to be called from outside > > a transaction. > > Huh? Only if you invent your own stored-procedure theory or have a > hitherto unknown

Re: [HACKERS] TODO: Mark change-on-restart-only values in

2006-07-24 Thread Jim Nasby
On Jul 17, 2006, at 2:48 PM, Zdenek Kotala wrote: Josh Berkus wrote: Zdenek, I would like to implement "Mark change-on-restart-only values in postgresql.conf" item. Anybody works on this? Does it mean add extra comment to postgresql.conf for variable which has PG_POSTMASTER context? Somehow

Re: [HACKERS] [PATCHES] Generic Monitoring Framework with DTrace patch

2006-07-24 Thread Robert Lor
Excellent! I'll submit a doc patch shortly. Regards, -Robert Peter Eisentraut wrote: I've committed the dtrace patch. Some documentation would be nice now ... ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send

[HACKERS] effective_cache_size is a real?

2006-07-24 Thread Peter Eisentraut
Is it intentional that effective_cache_size is a real (as opposed to integer)? The initial revision of guc.c already has it that way, so it was probably blindly adapted from the previous adhockery that had all planner variables be doubles. -- Peter Eisentraut http://developer.postgresql.org/~

Re: [HACKERS] Better name/syntax for "online" index creation

2006-07-24 Thread Peter Eisentraut
Greg Stark wrote: > One thing to think about, what will the command to execute stored > procedures look like? Those will also need to be called from outside > a transaction. Huh? Only if you invent your own stored-procedure theory or have a hitherto unknown interpretation of the SQL standard. -

Re: [HACKERS] Better name/syntax for "online" index creation

2006-07-24 Thread Alvaro Herrera
Greg Stark wrote: > Tom Lane <[EMAIL PROTECTED]> writes: > > > I'm also wondering about where in the command the keyword should go. > > As submitted it's > > > > [ WITH ( > class="PARAMETER">storage_parameter = > class="PARAMETER">value [, ... ] ) ] > > [ TABLESPACE tablespace ] >

Re: [HACKERS] [PATCHES] Resurrecting per-page cleaner for btree

2006-07-24 Thread Heikki Linnakangas
On Mon, 24 Jul 2006, Tom Lane wrote: Personally I don't think retail vacuuming in that form will ever fly anyway, so I have no problem with installing the proposed patch, but I thought I'd better throw this comment out to see if anyone thinks it's a big deal. My feeling is that retail vacuumin

Re: [HACKERS] Better name/syntax for "online" index creation

2006-07-24 Thread Bort, Paul
Greg Stark asked: > I know Oracle calls this "online" index builds. In fact it > works similarly > with a single keyword "online" tacked on near the end of the > create index > statement. > > Anyone know what MSSQL or DB2 call it? > I have to live with MSSQL at work, and I didn't remember an

Re: [HACKERS] Making config file parser available to add-ins

2006-07-24 Thread Marc Munro
On Mon, 2006-07-24 at 15:17 -0400, Tom Lane wrote: > No, being able to do that is exactly the point of the custom-GUC > mechanism. Excellent. I shall study this and hope to bother you no further :-) Thanks. __ Marc signature.asc Description: This is a digitally signed message part

Re: [HACKERS] Making config file parser available to add-ins

2006-07-24 Thread Tom Lane
Marc Munro <[EMAIL PROTECTED]> writes: > I don't think it's already solved but I may be missing the point. The > Veil shared library will be loaded by process_preload_libraries only > after the postgresql config file has been read. I was assuming that at > this point it would be too late to speci

Re: [HACKERS] Making config file parser available to add-ins

2006-07-24 Thread Marc Munro
On Mon, 2006-07-24 at 14:44 -0400, Tom Lane wrote: > Peter Eisentraut <[EMAIL PROTECTED]> writes: > > Marc Munro wrote: > >> I want Veil (http://pgfoundry.org/projects/veil/) to be able to read > >> configuration details from a configuration file. > > > What kind of details? By the time any serve

Re: [HACKERS] Making config file parser available to add-ins

2006-07-24 Thread Marc Munro
On Mon, 2006-07-24 at 20:31 +0200, Peter Eisentraut wrote: > Marc Munro wrote: > > I want Veil (http://pgfoundry.org/projects/veil/) to be able to read > > configuration details from a configuration file. > > What kind of details? By the time any server-side module is loaded, the > configuration

Re: [HACKERS] Better name/syntax for "online" index creation

2006-07-24 Thread Greg Stark
Tom Lane <[EMAIL PROTECTED]> writes: > I'm fairly dissatisfied with the naming of Greg Stark's proposed new > feature for creating indexes without blocking writers of the table. > To my mind, "ONLINE" just doesn't convey any useful information --- > the existing CREATE INDEX functionality could al

Re: [HACKERS] Making config file parser available to add-ins

2006-07-24 Thread Andrew Dunstan
Peter Eisentraut wrote: Marc Munro wrote: I want Veil (http://pgfoundry.org/projects/veil/) to be able to read configuration details from a configuration file. What kind of details? By the time any server-side module is loaded, the configuration file has already been read, so why wou

Re: [HACKERS] Making config file parser available to add-ins

2006-07-24 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Marc Munro wrote: >> I want Veil (http://pgfoundry.org/projects/veil/) to be able to read >> configuration details from a configuration file. > What kind of details? By the time any server-side module is loaded, the > configuration file has already

Re: [HACKERS] [PATCHES] The vacuum-ignore-vacuum patch

2006-07-24 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> A possible objection to this is that it would foreclose running VACUUM >> and ANALYZE as a single transaction, exactly because of the point that >> we couldn't insert pg_statistic rows using a lazy vacuum's XID. > Hmm, what about havi

Re: [HACKERS] Making config file parser available to add-ins

2006-07-24 Thread Peter Eisentraut
Marc Munro wrote: > I want Veil (http://pgfoundry.org/projects/veil/) to be able to read > configuration details from a configuration file. What kind of details? By the time any server-side module is loaded, the configuration file has already been read, so why would you need to read it again?

[HACKERS] [Fwd: dblink patch - Asynchronous queries and parallel execution]

2006-07-24 Thread Joe Conway
(cross-posted from PATCHES without the attachement) I just received this (offlist), and have not had a chance to review it myself yet, but figured I should post it now in case others want to have a look and comment or discuss before feature freeze. If there are no major objections to the concept

Re: [HACKERS] [PATCHES] The vacuum-ignore-vacuum patch

2006-07-24 Thread Alvaro Herrera
Tom Lane wrote: > Alvaro Herrera <[EMAIL PROTECTED]> writes: > > Hannu Krossing asked me about his patch to ignore transactions running > > VACUUM LAZY in other vacuum transactions. I attach a version of the > > patch updated to the current sources. > > nonInVacuumXmin seems useless ... perhaps a

Re: [HACKERS] [PATCHES] The vacuum-ignore-vacuum patch

2006-07-24 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > Hannu Krossing asked me about his patch to ignore transactions running > VACUUM LAZY in other vacuum transactions. I attach a version of the > patch updated to the current sources. nonInVacuumXmin seems useless ... perhaps a vestige of some earlier ver

Re: [HACKERS] inclusion of hstore software in main tarball

2006-07-24 Thread Alvaro Herrera
Nicolai Petri wrote: > If people hate contrib so much why not just get rid of it forever.. Either it > should embrace as much small contrib modules as possible - else it should > disappear in my opinion. Actually that's partly the intention. Several contrib modules have been removed in the rec

Re: [HACKERS] [PATCHES] Allow commenting of variables in postgresql.conf to - try 4

2006-07-24 Thread Peter Eisentraut
Joachim Wieland wrote: > On Mon, Jul 24, 2006 at 07:09:17PM +0200, Peter Eisentraut wrote: > > Am Montag, 24. Juli 2006 16:55 schrieb Stephen Frost: > > > #2: That variable can *not* be changed by a reload. > > > Notice-level message is sent to the log notifying the admin > > > that the change

Re: [HACKERS] plPHP and plRuby

2006-07-24 Thread Peter Eisentraut
Joshua D. Drake wrote: > What do you want to hear? I have my emails in correspondence asking > for the relicense and the approval to submit. > > Is there something specific you are looking for? Either the author is going to abandon development, then it might make sense to pick up the pieces withi

Re: [HACKERS] plPHP and plRuby

2006-07-24 Thread Joshua D. Drake
Sorry that nobody caught it (including myself), but good lord it isn't that big of a deal. Consistency is important. It may not be _THAT_ big a deal, but we should be at least a little careful. I do not disagree. All I was saying was that it is a very common mistake (see secondary note sa

Re: [HACKERS] [PATCHES] Allow commenting of variables in postgresql.conf to - try 4

2006-07-24 Thread Joachim Wieland
On Mon, Jul 24, 2006 at 10:55:47AM -0400, Stephen Frost wrote: > #2: That variable can *not* be changed by a reload. > Notice-level message is sent to the log notifying the admin that the > change requested could not be performed. This change could be > either a revert to reset-val

Re: [HACKERS] plPHP and plRuby

2006-07-24 Thread Alvaro Herrera
Joshua D. Drake wrote: > Peter Eisentraut wrote: > >Am Montag, 24. Juli 2006 18:49 schrieb Alvaro Herrera: > >>Side question -- is it plRuby or PL/Ruby? We should be consistent. I > >>just noticed the top-level README file has all the wrong names -- what > >>is "pl/c" for starters? Or plPgsql?

[HACKERS] Making config file parser available to add-ins

2006-07-24 Thread Marc Munro
I want Veil (http://pgfoundry.org/projects/veil/) to be able to read configuration details from a configuration file. Rather than implement my own config file parser, I'd like to be able to re-use the parser defined in guc-file.l If this is not contentious, I will submit a patch to make the parse

Re: [HACKERS] plPHP and plRuby

2006-07-24 Thread Joshua D. Drake
Peter Eisentraut wrote: Am Montag, 24. Juli 2006 18:49 schrieb Alvaro Herrera: Side question -- is it plRuby or PL/Ruby? We should be consistent. I just noticed the top-level README file has all the wrong names -- what is "pl/c" for starters? Or plPgsql? We've _never_ used those names. I'm

Re: [HACKERS] [PATCHES] Allow commenting of variables in postgresql.conf to - try 4

2006-07-24 Thread Joachim Wieland
On Mon, Jul 24, 2006 at 07:09:17PM +0200, Peter Eisentraut wrote: > Am Montag, 24. Juli 2006 16:55 schrieb Stephen Frost: > > #2: That variable can *not* be changed by a reload. > > Notice-level message is sent to the log notifying the admin that the > > change requested could not be perfor

Re: [HACKERS] plPHP and plRuby

2006-07-24 Thread Joshua D. Drake
Peter Eisentraut wrote: Am Montag, 24. Juli 2006 18:49 schrieb Alvaro Herrera: Side question -- is it plRuby or PL/Ruby? We should be consistent. I just noticed the top-level README file has all the wrong names -- what is "pl/c" for starters? Or plPgsql? We've _never_ used those names. I'm

Re: [HACKERS] [PATCHES] Allow commenting of variables in postgresql.conf to - try 4

2006-07-24 Thread Peter Eisentraut
Am Montag, 24. Juli 2006 16:55 schrieb Stephen Frost: > #2: That variable can *not* be changed by a reload. > Notice-level message is sent to the log notifying the admin that the > change requested could not be performed. This already happens. -- Peter Eisentraut http://developer.postg

Re: [HACKERS] plPHP and plRuby

2006-07-24 Thread Joshua D. Drake
Peter Eisentraut wrote: Am Montag, 24. Juli 2006 18:23 schrieb Joshua D. Drake: O.k. so we don't loose this. Do we want to work on PL/Ruby in core or not? Unless you plan to fork or hijack the package, we need to hear from the author first. What do you want to hear? I have my emails in corr

[HACKERS] Getting current transaction id

2006-07-24 Thread Nicolai Petri
Hello all I'm in the need for my custom written replication engine to obtain the current transaction id from a trigger function. As far as I'm told it's not possible today. Would people object much if this functionality was added for 8.2 ? It's the last piece of postgresql C code I have left in

Re: [HACKERS] inclusion of hstore software in main tarball

2006-07-24 Thread Nicolai Petri
On Wednesday 03 May 2006 19:49, Jim C. Nasby wrote: > On Wed, May 03, 2006 at 07:06:09PM +0200, hubert depesz lubaczewski wrote: > > hi > > some time ago i was told on postgresql-general about existence of > > "hstore" package for postgresql. > > as i understand it is being developed by the same gu

Re: [HACKERS] Adding a pgbench run to buildfarm

2006-07-24 Thread Andrew Dunstan
Bort, Paul wrote: Given the concerns about running this on machines that don't have a lot of CPU and disk to spare, should it ship disabled? Yes, certainly. Andrew, what do you think of pgbench reports shipping separately? I have no idea how the server end is set up, so I don't know how mu

Re: [HACKERS] plPHP and plRuby

2006-07-24 Thread Peter Eisentraut
Am Montag, 24. Juli 2006 18:49 schrieb Alvaro Herrera: > Side question -- is it plRuby or PL/Ruby? We should be consistent. I > just noticed the top-level README file has all the wrong names -- what > is "pl/c" for starters? Or plPgsql? We've _never_ used those names. I'm beginning to think th

Re: [HACKERS] plPHP and plRuby

2006-07-24 Thread Alvaro Herrera
Joshua D. Drake wrote: > Josh Berkus wrote: > >Neil, > > > >>(FWIW, I'd be fairly comfortable hacking on PL/Ruby, as I have some > >>prior experience with Ruby and its C API.) > > > >Well, if you're willing to be a maintainer, that removes a major roadblock. > > > > O.k. so we don't loose this. Do

Re: [HACKERS] Adding a pgbench run to buildfarm

2006-07-24 Thread Bort, Paul
Andrew Dunstan wrote: > > We are really not going to go in this direction. If you want ideal > performance tests then a heterogenous distributed collection of > autonomous systems like buildfarm is not what you want. > > You are going to have to live with the fatc that there will be > occasio

Re: [HACKERS] [PATCHES] Resurrecting per-page cleaner for btree

2006-07-24 Thread Tom Lane
ITAGAKI Takahiro <[EMAIL PROTECTED]> writes: > This is a revised patch originated by Junji TERAMOTO for HEAD. > [BTree vacuum before page splitting] > http://archives.postgresql.org/pgsql-patches/2006-01/msg00301.php > I think we can resurrect his idea because we will scan btree pages > at-atim

Re: [HACKERS] plPHP and plRuby

2006-07-24 Thread Peter Eisentraut
Am Montag, 24. Juli 2006 18:23 schrieb Joshua D. Drake: > O.k. so we don't loose this. Do we want to work on PL/Ruby in core or not? Unless you plan to fork or hijack the package, we need to hear from the author first. -- Peter Eisentraut http://developer.postgresql.org/~petere/ --

Re: [HACKERS] [PATCHES] Generic Monitoring Framework with DTrace patch

2006-07-24 Thread Peter Eisentraut
I've committed the dtrace patch. Some documentation would be nice now ... -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [HACKERS] plPHP and plRuby

2006-07-24 Thread Joshua D. Drake
Josh Berkus wrote: Neil, (FWIW, I'd be fairly comfortable hacking on PL/Ruby, as I have some prior experience with Ruby and its C API.) Well, if you're willing to be a maintainer, that removes a major roadblock. O.k. so we don't loose this. Do we want to work on PL/Ruby in core or not? Jo

Re: [HACKERS] UPDATE/DELETE XXX WHERE CURRENT OF cursor_name

2006-07-24 Thread Florian G. Pflug
Tom Lane wrote: "Florian G. Pflug" <[EMAIL PROTECTED]> writes: How could there be a concurrent update of the _same_ row, when I do "select * from bar *for update*". AFAICT the spec doesn't require one to have written FOR UPDATE in order to use WHERE CURRENT OF. (In effect, they expect FOR UPD

Re: [HACKERS] Better name/syntax for "online" index creation

2006-07-24 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Am Montag, 24. Juli 2006 17:13 schrieb Tom Lane: >> I'm tempted to put the new keyword at the very front: >> >> SHARED CREATE INDEX >> >> which would probably mean that we'd have to document it as if it were a >> completely separate command from

Re: [HACKERS] UPDATE/DELETE XXX WHERE CURRENT OF cursor_name

2006-07-24 Thread Tom Lane
"Florian G. Pflug" <[EMAIL PROTECTED]> writes: > How could there be a concurrent update of the _same_ row, when > I do "select * from bar *for update*". AFAICT the spec doesn't require one to have written FOR UPDATE in order to use WHERE CURRENT OF. (In effect, they expect FOR UPDATE to be the de

Re: [HACKERS] UPDATE/DELETE XXX WHERE CURRENT OF cursor_name

2006-07-24 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > No, a concurrent vacuum can't change that because vacuum can't change > the page unless it can get a super-exclusive lock on it (which means > nobody else can have a scan stopped at that page, which is exactly > what this cursor has). More to the point,

Re: [HACKERS] Better name/syntax for "online" index creation

2006-07-24 Thread Peter Eisentraut
Am Montag, 24. Juli 2006 17:13 schrieb Tom Lane: > To my mind, "ONLINE" just doesn't convey any useful information --- > the existing CREATE INDEX functionality could already be said to be > "online", in the sense that you don't have to take down the database > to do it. I thought about "SHARED" b

Re: [HACKERS] UPDATE/DELETE XXX WHERE CURRENT OF cursor_name

2006-07-24 Thread Florian G. Pflug
Tom Lane wrote: "Florian G. Pflug" <[EMAIL PROTECTED]> writes: Couldn't this be emulated by doing begin; declare foo cursor for select * from bar for update; fetch foo into v_foo ; update bar set abc='def' where ctid = v_foo.ctid; That wouldn't follow the expected semantics if there's a concur

Re: [HACKERS] UPDATE/DELETE XXX WHERE CURRENT OF cursor_name

2006-07-24 Thread Alvaro Herrera
Florian G. Pflug wrote: > Gavin Sherry wrote: > >On Mon, 24 Jul 2006, Golden Liu wrote: > > > >>begin; > >>declare foo cursor for select * from bar for update; > >>fetch foo; > >>update bar set abc='def' where current of foo; > >>fetch foo; > >>delete from bar where current of foo; > >>commit; > >

Re: [HACKERS] UPDATE/DELETE XXX WHERE CURRENT OF cursor_name

2006-07-24 Thread Tom Lane
"Florian G. Pflug" <[EMAIL PROTECTED]> writes: > Couldn't this be emulated by doing > begin; > declare foo cursor for select * from bar for update; > fetch foo into v_foo ; > update bar set abc='def' where ctid = v_foo.ctid; That wouldn't follow the expected semantics if there's a concurrent updat

Re: [HACKERS] Better name/syntax for "online" index creation

2006-07-24 Thread Rod Taylor
Sorry, hit send too quickly. NOLOCK is kinda like NOWAIT, except implies that the command will not take a strong lock instead of stating that it will not wait for one. On Mon, 2006-07-24 at 11:20 -0400, Rod Taylor wrote: > > SHARED CREATE INDEX > > > Comments? > > CREATE [UNIQUE] INDEX

Re: [HACKERS] Better name/syntax for "online" index creation

2006-07-24 Thread Rod Taylor
> SHARED CREATE INDEX > Comments? CREATE [UNIQUE] INDEX [WITH NOLOCK] ON ... -- ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[HACKERS] Better name/syntax for "online" index creation

2006-07-24 Thread Tom Lane
I'm fairly dissatisfied with the naming of Greg Stark's proposed new feature for creating indexes without blocking writers of the table. To my mind, "ONLINE" just doesn't convey any useful information --- the existing CREATE INDEX functionality could already be said to be "online", in the sense tha

Re: [HACKERS] UPDATE/DELETE XXX WHERE CURRENT OF cursor_name

2006-07-24 Thread Florian G. Pflug
Gavin Sherry wrote: On Mon, 24 Jul 2006, Golden Liu wrote: begin; declare foo cursor for select * from bar for update; fetch foo; update bar set abc='def' where current of foo; fetch foo; delete from bar where current of foo; commit; No one has stepped up to do this for 8.2 so unfortunately

Re: [HACKERS] [PATCHES] patch implementing the multi-argument aggregates (SOC

2006-07-24 Thread Sergey E. Koposov
On Mon, 24 Jul 2006, Tom Lane wrote: "Sergey E. Koposov" <[EMAIL PROTECTED]> writes: Since the feature freeze is in a few days, I'm sending the first iteration of my patch implementing the multi-argument aggregates (PolyArgAgg) (SOC project) This patch is nowhere near ready for submission :-(

Re: [HACKERS] [PATCHES] Allow commenting of variables in postgresql.conf to - try 4

2006-07-24 Thread Stephen Frost
* Tom Lane ([EMAIL PROTECTED]) wrote: > Joachim Wieland <[EMAIL PROTECTED]> writes: > > I did not check the changes you have done to set_config_option and the like > > but tested the commenting / uncommenting / changing of guc variables and the > > behavior and log output. The general idea (at leas

Re: [HACKERS] [PATCHES] patch implementing the multi-argument aggregates (SOC project)

2006-07-24 Thread Tom Lane
"Sergey E. Koposov" <[EMAIL PROTECTED]> writes: > Since the feature freeze is in a few days, I'm sending the first iteration > of my patch implementing the multi-argument aggregates (PolyArgAgg) (SOC > project) This patch is nowhere near ready for submission :-(. Most of the comments seem to be

Re: [HACKERS] [PATCHES] Allow commenting of variables in postgresql.conf to - try 4

2006-07-24 Thread Tom Lane
Joachim Wieland <[EMAIL PROTECTED]> writes: > I did not check the changes you have done to set_config_option and the like > but tested the commenting / uncommenting / changing of guc variables and the > behavior and log output. The general idea (at least my idea) is that > whenever a SIGHUP is rece

Re: [HACKERS] [PATCHES] LDAP patch & feature freeze

2006-07-24 Thread Tom Lane
"Albe Laurenz" <[EMAIL PROTECTED]> writes: > Any chance that my LDAP patch > http://momjian.us/mhonarc/patches/msg0.html > will get reviewed before the feature freeze? Feature freeze is the deadline for patch submission, not patch application. regards, tom lane --

Re: [HACKERS] On-disk bitmap index patch

2006-07-24 Thread Hannu Krosing
Ühel kenal päeval, P, 2006-07-23 kell 20:25, kirjutas Tom Lane: > Gavin Sherry <[EMAIL PROTECTED]> writes: > > On Sun, 23 Jul 2006, Tom Lane wrote: > >> However, the main problem I've got with this is that a new index AM is a > >> pretty large burden, and no one's made the slightest effort to sell

Re: [HACKERS] Adding a pgbench run to buildfarm

2006-07-24 Thread Andrew Dunstan
Tom Lane wrote: Mark Kirkwood <[EMAIL PROTECTED]> writes: Scale factor 10 produces an accounts table of about 130 Mb. Given that most HW these days has at least 1G of ram, this probably means not much retrieval IO is tested (only checkpoint and wal fsync). Do we want to try 100 or even 200?

[HACKERS] Maximum size of tuples in a relation

2006-07-24 Thread Tzahi Fadida
Is there a way to figure out from the catalogs somehow the largest size in bytes of the largest tuple in a relation without going one by one over the relation and calculating that. alternatively, without actually pulling out the whole tuple from the disk? (It is necessary for the algorithm to kn

Re: [HACKERS] Adding a pgbench run to buildfarm

2006-07-24 Thread Andrew Dunstan
Gavin Sherry wrote: Not all machines stay the same over time. A machine may by upgraded, a machine may be getting backed up or may in some other way be utilised during a performance test. This would skew the stats for that machine. It may confuse people more than help them... At the very least,

Re: [HACKERS] Adding a pgbench run to buildfarm

2006-07-24 Thread Andrew Dunstan
Dave Page wrote: With help from Andrew Dunstan, I'm adding the ability to do a pgbench run after all of the other tests during a buildfarm run. Please ensure the run is optional. The machine hosting Snake and Bandicoot is currently running 16 builds a day, and I'd prefer not to signif

Re: [HACKERS] Transaction Speed and real time database

2006-07-24 Thread Joerg Hessdoerfer
Hi, On Monday 24 July 2006 11:26, Csaba Nagy wrote: > [snip] > > > OTOH, one has to be very careful to not mix terms here. In industrial > > (production floor) applications, the term 'real time database' refers to > > soemthing completely different than a relational, transactional DB. > > But "rel

  1   2   >