Re: [PATCHES] INSERT ... RETURNING

2005-07-30 Thread Omar Kilani
Bruce, Are you still working on completing this? Attached is my latest rewrite of this patch. Basically, it adds RETURNING to INSERT/UPDATE/DELETE, and allows arbitrary expressions. I'm still not sure how to handle DELETE ... USING and UPDATE ... FROM as I don't see a way to project the

Re: [PATCHES] [HACKERS] Autovacuum loose ends

2005-07-30 Thread Michael Paesold
Alvaro Herrera wrote: I still haven't added custom cost-based delays, but I don't see that as a showstopper for removing it. I just went through the CVS log and I don't see anything else that applies. I think you should at least add an autovacuum specific value for vacuum_cost_delay because

Re: [PATCHES] [HACKERS] PL/Perl list value return causes segfault

2005-07-30 Thread Andrew Dunstan
David Fetter wrote: *** 716,724 listitem para ! In the current implementation, if you are fetching or returning ! very large data sets, you should be aware that these will all go ! into memory. /para /listitem /itemizedlist --- 766,776

Re: [PATCHES] [HACKERS] Win32 build broken by recent changes to xlog.c

2005-07-30 Thread Bruce Momjian
Magnus Hagander wrote: Seems it's dead on the buildfarm box as well: http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=snakedt=2005-07-30%20 01:00:01 From what I can tell, the recent patch for O_DIRECT broke it. OK, fix attached, and some macro cleanup too. -- Bruce Momjian

[PATCHES] Updated instrumentation patch

2005-07-30 Thread Magnus Hagander
Per recent discussion, here is yet another updated version of the instrumentation patch. Changes: * Added guc option disable_remote_admin, that disables any write operations (write, unlink, rename) even for the superuser. Set as PGC_POSTMASTER so it cannot be changed remotely. I put this under

Re: [PATCHES] [HACKERS] Autovacuum loose ends

2005-07-30 Thread Tom Lane
Michael Paesold [EMAIL PROTECTED] writes: Alvaro Herrera wrote: I still haven't added custom cost-based delays, but I don't see that as a showstopper for removing it. I just went through the CVS log and I don't see anything else that applies. I think you should at least add an autovacuum

Re: [PATCHES] [HACKERS] Autovacuum loose ends

2005-07-30 Thread Bruce Momjian
Tom Lane wrote: Michael Paesold [EMAIL PROTECTED] writes: Alvaro Herrera wrote: I still haven't added custom cost-based delays, but I don't see that as a showstopper for removing it. I just went through the CVS log and I don't see anything else that applies. I think you should at

Re: [PATCHES] Updated instrumentation patch

2005-07-30 Thread Magnus Hagander
I just realised the entry for pg_file_rename is duplicated in pg_proc.h. Unless someone can say it's a good thing (it was in the original patch..), please remove one of those entries before applying. It breaks the opr_sanity test. //Magnus -Original Message- From: [EMAIL PROTECTED]

Re: [PATCHES] Interval-day docs and regression tests

2005-07-30 Thread Bruce Momjian
Patch applied. Thanks. --- Michael Glaesemann wrote: Please find attached diffs for documentation and simple regression tests for the new interval-day changes. I added tests for justify_hours() and justify_days()

Re: [PATCHES] [HACKERS] Autovacuum loose ends

2005-07-30 Thread Bruce Momjian
Tom Lane wrote: Bruce Momjian pgman@candle.pha.pa.us writes: I think you should at least add an autovacuum specific value for vacuum_cost_delay because it turns cost-based vacuum delay on or off. I am thinking we should move ahead with what we have now, suggest the work-arounds, and

Re: [PATCHES] [HACKERS] Autovacuum loose ends

2005-07-30 Thread Tom Lane
Bruce Momjian pgman@candle.pha.pa.us writes: I think you should at least add an autovacuum specific value for vacuum_cost_delay because it turns cost-based vacuum delay on or off. I am thinking we should move ahead with what we have now, suggest the work-arounds, and thensee what use-cases

Re: [PATCHES] Updated instrumentation patch

2005-07-30 Thread Tom Lane
Magnus Hagander [EMAIL PROTECTED] writes: Per recent discussion, here is yet another updated version of the instrumentation patch. Changes: * Added guc option disable_remote_admin, that disables any write operations (write, unlink, rename) even for the superuser. Set as PGC_POSTMASTER so it

Re: [PATCHES] Updated instrumentation patch

2005-07-30 Thread Bruce Momjian
Tom Lane wrote: Magnus Hagander [EMAIL PROTECTED] writes: Per recent discussion, here is yet another updated version of the instrumentation patch. Changes: * Added guc option disable_remote_admin, that disables any write operations (write, unlink, rename) even for the superuser. Set as

Re: [PATCHES] Updated instrumentation patch

2005-07-30 Thread Bruce Momjian
Magnus Hagander wrote: Per recent discussion, here is yet another updated version of the instrumentation patch. Changes: * Added guc option disable_remote_admin, that disables any write operations (write, unlink, rename) even for the superuser. Set as PGC_POSTMASTER so it

Re: [PATCHES] Updated instrumentation patch

2005-07-30 Thread Magnus Hagander
Also, as I already said, marking it as PGC_POSTMASTER is simply not adequate security. Once we have some sort of remote admin feature, I would expect it to support adjustment of even postmaster-level options (this would mean forcing a database restart of course) --- you

Re: [PATCHES] Patch to mention cost-based delay in vacuum reference

2005-07-30 Thread Bruce Momjian
Updated patch applied. Thanks. --- Alvaro Herrera wrote: Hackers, Subject says it all. Please review the grammar ... -- Alvaro Herrera (alvherre[a]alvh.no-ip.org) Et put se mouve (Galileo Galilei) -- Bruce

Re: [PATCHES] Updated instrumentation patch

2005-07-30 Thread Magnus Hagander
I think any secure solution is going to have to block all write access to postgresql.conf, and that includes all the COPY TO and all the untrusted languages. Exactly. But we won't get that for 8.1. So for now, we block all write access through *new* functions, per the let's

Re: [PATCHES] Updated instrumentation patch

2005-07-30 Thread Bruce Momjian
Magnus Hagander wrote: I think any secure solution is going to have to block all write access to postgresql.conf, and that includes all the COPY TO and all the untrusted languages. Exactly. But we won't get that for 8.1. So for now, we block all write access through

Re: [PATCHES] Updated instrumentation patch

2005-07-30 Thread Tom Lane
Magnus Hagander [EMAIL PROTECTED] writes: For the long term I was thinking something like restrict_superuser, which would disable both read and write, and COPY, and untrusted PL creation, etc, etc. But that's not for 8.1. That's exactly what I'm talking about. Also, as I already said,

Re: [PATCHES] P.tch to mention cost-based delay in vacuum reference

2005-07-30 Thread Alvaro Herrera
On Sat, Jul 30, 2005 at 11:46:37AM -0400, Bruce Momjian wrote: Updated patch applied. Thanks. Huh, something is very wrong with the markup: http://candle.pha.pa.us/main/writings/pgsql/sgml/sql-vacuum.html -- Alvaro Herrera (alvherre[a]alvh.no-ip.org) Having your biases confirmed

Re: [PATCHES] Updated instrumentation patch

2005-07-30 Thread Magnus Hagander
Once we have a real remote admin API, it becomes an argument, and it will have to be adjusted. But we don't have that today, and I see no need to create a new guc category just for this. After all, some of these functions will probably go away completely once we have such an

Re: [PATCHES] [HACKERS] Autovacuum loose ends

2005-07-30 Thread Alvaro Herrera
On Sat, Jul 30, 2005 at 10:57:15AM -0400, Bruce Momjian wrote: Tom Lane wrote: Bruce Momjian pgman@candle.pha.pa.us writes: I think you should at least add an autovacuum specific value for vacuum_cost_delay because it turns cost-based vacuum delay on or off. I am thinking we should

Re: [PATCHES] Updated instrumentation patch

2005-07-30 Thread Dave Page
-Original Message- From: [EMAIL PROTECTED] on behalf of Tom Lane Sent: Sat 7/30/2005 4:58 PM To: Magnus Hagander Cc: PostgreSQL-patches Subject: Re: [PATCHES] Updated instrumentation patch None of these functions are getting into 8.1 anyway; we should be designing the long-term

Re: [PATCHES] P.tch to mention cost-based delay in vacuum reference

2005-07-30 Thread Bruce Momjian
Alvaro Herrera wrote: On Sat, Jul 30, 2005 at 11:46:37AM -0400, Bruce Momjian wrote: Updated patch applied. Thanks. Huh, something is very wrong with the markup: http://candle.pha.pa.us/main/writings/pgsql/sgml/sql-vacuum.html OK, fixed. link and linkend should not both be used. --

Re: [PATCHES] P.tch to mention cost-based delay in vacuum reference

2005-07-30 Thread Alvaro Herrera
On Sat, Jul 30, 2005 at 12:06:11PM -0400, Alvaro Herrera wrote: On Sat, Jul 30, 2005 at 11:46:37AM -0400, Bruce Momjian wrote: Updated patch applied. Thanks. Huh, something is very wrong with the markup: http://candle.pha.pa.us/main/writings/pgsql/sgml/sql-vacuum.html This should fix

Re: [PATCHES] P.tch to mention cost-based delay in vacuum reference

2005-07-30 Thread Alvaro Herrera
On Sat, Jul 30, 2005 at 01:04:28PM -0400, Bruce Momjian wrote: Alvaro Herrera wrote: On Sat, Jul 30, 2005 at 11:46:37AM -0400, Bruce Momjian wrote: Updated patch applied. Thanks. Huh, something is very wrong with the markup:

Re: [PATCHES] P.tch to mention cost-based delay in vacuum reference

2005-07-30 Thread Bruce Momjian
OK, I backed out my fix and applied your, and tested the output. --- Alvaro Herrera wrote: On Sat, Jul 30, 2005 at 12:06:11PM -0400, Alvaro Herrera wrote: On Sat, Jul 30, 2005 at 11:46:37AM -0400, Bruce Momjian wrote:

Re: [PATCHES] Interval-day docs and regression tests

2005-07-30 Thread Bruce Momjian
Tom Lane wrote: Michael Glaesemann [EMAIL PROTECTED] writes: Please find attached diffs for documentation and simple regression tests for the new interval-day changes. The buildfarm results suggest that justify_days is broken in the integer-datetimes case, eg from panda: ***

Re: [PATCHES] per user/database connections limit again

2005-07-30 Thread Petr Jelinek
Here is promised documentation. Be warned that both my writing skills and my english are far from good :) -- Regards Petr Jelinek (PJMODOS) Index: doc/src/sgml/catalogs.sgml === RCS file:

Re: [PATCHES] PL/PGSQL: Dynamic Record Introspection

2005-07-30 Thread Neil Conway
Bruce Momjian wrote: Your patch has been added to the PostgreSQL unapplied patches list It was agreed earlier that this should be saved for 8.2, I believe. -Neil ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore

Re: [PATCHES] [HACKERS] PL/Perl list value return causes segfault

2005-07-30 Thread David Fetter
On Sat, Jul 30, 2005 at 09:47:58AM -0400, Andrew Dunstan wrote: David Fetter wrote: You have rolled 2 problems into one - spi_query+spi_fetchrow does not address the issue of returning large data sets. Suggest instead: [suggestion] Revised patch attached. Thanks for catching this

Re: [PATCHES] per user/database connections limit again

2005-07-30 Thread Tom Lane
Bruce Momjian pgman@candle.pha.pa.us writes: I have worked over your patch and I think it is ready for application. I've made another pass over this and should be able to commit tomorrow (I'm about to knock off for today, and ran out of time to test pg_dumpall). One thing I changed was that it

Re: [PATCHES] PL/PGSQL: Dynamic Record Introspection

2005-07-30 Thread Bruce Momjian
This has been saved for the 8.2 release: http://momjian.postgresql.org/cgi-bin/pgpatches_hold --- Titus von Boxberg wrote: Tom Lane schrieb: Titus von Boxberg [EMAIL PROTECTED] writes: It works for me if we