Re: [PATCHES] Current enums patch

2007-04-02 Thread Heikki Linnakangas
Tom Lane wrote: Tom Dunstan <[EMAIL PROTECTED]> writes: Here's the current version of the enums patch. Applied with revisions --- some cosmetic, some not so much. Attached is the patch-as-applied if you care to compare; feel free to ask questions about anything not obvious. There's a little

Re: [PATCHES] COPY-able sql log outputs

2007-04-02 Thread Magnus Hagander
On Mon, Apr 02, 2007 at 04:27:33PM +, FAST PostgreSQL wrote: > On Sat, 31 Mar 2007 14:09, you wrote: > > FAST PostgreSQL wrote: > > >> Am Dienstag, 3. April 2007 20:33 schrieb FAST PostgreSQL: > > >>> Attached is the completed patch for the COPY-able sql log outputs. > > >> > > >> Could you ple

Re: [PATCHES] Current enums patch

2007-04-02 Thread Andrew Dunstan
Heikki Linnakangas wrote: Tom Lane wrote: Tom Dunstan <[EMAIL PROTECTED]> writes: Here's the current version of the enums patch. Applied with revisions --- some cosmetic, some not so much. Attached is the patch-as-applied if you care to compare; feel free to ask questions about anything not o

Re: [PATCHES] Current enums patch

2007-04-02 Thread Tom Dunstan
> Looks like we need to check the length on type creation > too. > > I'll fix later if not beaten to it. It works for me (ie fails with an appropriate error) locally on Linux FC6 x86-64. Perhaps this platform initializes memory to zero on allocation? I dunno. Anyway, if you can reproduce it, plea

Re: [PATCHES] Blocked post

2007-04-02 Thread Simon Riggs
On Sun, 2007-04-01 at 19:40 +0200, Magnus Hagander wrote: > Simon Riggs wrote: > > I've sent through v10 of my patch for transaction guarantee = off twice > > now and it hasn't shown up on-list. I don't appear to be blocked, so I'm > > not sure what the problem is? > > > > Sent: 31 Mar 22:09 TZ+01

Re: [PATCHES] Blocked post

2007-04-02 Thread Magnus Hagander
On Mon, Apr 02, 2007 at 03:08:08PM +0100, Simon Riggs wrote: > On Sun, 2007-04-01 at 19:40 +0200, Magnus Hagander wrote: > > Simon Riggs wrote: > > > I've sent through v10 of my patch for transaction guarantee = off twice > > > now and it hasn't shown up on-list. I don't appear to be blocked, so I'

Re: [PATCHES] [Fwd: Deferred Transactions, Transaction Guarantee and COMMITwithout waiting]

2007-04-02 Thread Simon Riggs
Once more, with feeling. On Sun, 2007-04-01 at 12:11 +0100, Simon Riggs wrote: > Resending... > > Forwarded Message > From: Simon Riggs <[EMAIL PROTECTED]> > To: pgsql-patches@postgresql.org > Cc: pgsql-hackers@postgresql.org > Subject: Deferred Transactions, Transaction Guarant

Re: [PATCHES] Current enums patch

2007-04-02 Thread Tom Lane
"Tom Dunstan" <[EMAIL PROTECTED]> writes: >> Looks like we need to check the length on type creation >> too. > It works for me (ie fails with an appropriate error) locally > on Linux FC6 x86-64. Perhaps this platform initializes > memory to zero on allocation? Sounds more like you're testing with

Re: [PATCHES] Current enums patch

2007-04-02 Thread Tom Lane
Heikki Linnakangas <[EMAIL PROTECTED]> writes: > There's a little bug: > postgres=# CREATE TYPE aenum AS ENUM ('a','b','c'); CREATE TYPE > postgres=# CREATE TABLE t (e aenum); CREATE TABLE postgres=# INSERT > INTO t VALUES > ('fo

Re: [PATCHES] Blocked post

2007-04-02 Thread Bruce Momjian
Simon Riggs wrote: > I've sent through v10 of my patch for transaction guarantee = off twice > now and it hasn't shown up on-list. I don't appear to be blocked, so I'm > not sure what the problem is? > > Sent: 31 Mar 22:09 TZ+01:00 > Sent: 1 Apr 12:11 TZ+01:00 What an obvious ploy to get more ti

Re: [PATCHES] Current enums patch

2007-04-02 Thread Andrew Dunstan
Tom Lane wrote: Heikki Linnakangas <[EMAIL PROTECTED]> writes: There's a little bug: postgres=# CREATE TYPE aenum AS ENUM ('a','b','c'); CREATE TYPE postgres=# CREATE TABLE t (e aenum); CREATE TABLE postgres=# INSERT INTO t VALUES ('f

Re: [PATCHES] Current enums patch

2007-04-02 Thread Tom Dunstan
Hm, I suppose we should apply truncate_identifier rather than letting the strings be blindly truncated (perhaps in mid-character). Should we have it throw the truncation NOTICE, or not? First thought is to do so during CREATE TYPE but not during plain enum_in(). I don't see much point in tr

Re: [PATCHES] Current enums patch

2007-04-02 Thread Tom Lane
Tom Dunstan <[EMAIL PROTECTED]> writes: > I was about to suggest that we just truncate the value in the input > function and look it up on the basis that if it's too long, the lookup > will fail and we can just tell the user that it wasn't a valid value. > But if there's a valid value that has t

Re: [PATCHES] Blocked post

2007-04-02 Thread Gregory Stark
"Magnus Hagander" <[EMAIL PROTECTED]> writes: >> Plaintext patch, plus two plaintext .c files. > > Then I have no clue. Actually I've had more success with .tar.gz than plain text attachments. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com ---

Re: [PATCHES] Current enums patch

2007-04-02 Thread Andrew Dunstan
Tom Lane wrote: While all this reasoning is perfectly OK on its own terms, it ignores the precedents of SQL identifier handling. Maybe we should revisit the question of whether the labels are identifiers. If we do that can we still cache the values in the syscache? My impression fr

Re: [PATCHES] Blocked post

2007-04-02 Thread Dave Page
Bruce Momjian wrote: > Simon Riggs wrote: >> I've sent through v10 of my patch for transaction guarantee = off twice >> now and it hasn't shown up on-list. I don't appear to be blocked, so I'm >> not sure what the problem is? >> >> Sent: 31 Mar 22:09 TZ+01:00 >> Sent: 1 Apr 12:11 TZ+01:00 > > Wha

Re: [PATCHES] Current enums patch

2007-04-02 Thread Tom Dunstan
Tom Lane wrote: While all this reasoning is perfectly OK on its own terms, it ignores the precedents of SQL identifier handling. Maybe we should revisit the question of whether the labels are identifiers. Implying that they shouldn't be quoted like text (or should be double-quoted if required

Re: [PATCHES] Current enums patch

2007-04-02 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> While all this reasoning is perfectly OK on its own terms, it ignores >> the precedents of SQL identifier handling. Maybe we should revisit the >> question of whether the labels are identifiers. > If we do that can we still cache the

Re: [PATCHES] Current enums patch

2007-04-02 Thread Andrew Dunstan
Tom Dunstan wrote: Tom Lane wrote: While all this reasoning is perfectly OK on its own terms, it ignores the precedents of SQL identifier handling. Maybe we should revisit the question of whether the labels are identifiers. Implying that they shouldn't be quoted like text (or should be doubl

Re: [PATCHES] Blocked post

2007-04-02 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > "Magnus Hagander" <[EMAIL PROTECTED]> writes: >>> Plaintext patch, plus two plaintext .c files. >> >> Then I have no clue. > Actually I've had more success with .tar.gz than plain text attachments. I think the filter is not on the name or actual conte

Re: [PATCHES] Current enums patch

2007-04-02 Thread Tom Dunstan
Tom Lane wrote: But probably making them act like identifiers is not a good idea, because I doubt we want automatic downcasing in enum_in. People wouldn't be happy if they had to write WHERE color = '"Red"' or > something like that to get at a mixed-case enum label. Ah, that's what you had in

Re: [PATCHES] Blocked post

2007-04-02 Thread Bruce Momjian
Dave Page wrote: > Bruce Momjian wrote: > > Simon Riggs wrote: > >> I've sent through v10 of my patch for transaction guarantee = off twice > >> now and it hasn't shown up on-list. I don't appear to be blocked, so I'm > >> not sure what the problem is? > >> > >> Sent: 31 Mar 22:09 TZ+01:00 > >> Sen

Re: [PATCHES] Blocked post

2007-04-02 Thread Dave Page
Bruce Momjian wrote: > Dave Page wrote: >> Bruce Momjian wrote: >>> Simon Riggs wrote: I've sent through v10 of my patch for transaction guarantee = off twice now and it hasn't shown up on-list. I don't appear to be blocked, so I'm not sure what the problem is? Sent: 31 Mar

Re: [PATCHES] Blocked post

2007-04-02 Thread Magnus Hagander
Tom Lane wrote: > Gregory Stark <[EMAIL PROTECTED]> writes: >> "Magnus Hagander" <[EMAIL PROTECTED]> writes: Plaintext patch, plus two plaintext .c files. >>> Then I have no clue. > >> Actually I've had more success with .tar.gz than plain text attachments. > > I think the filter is not on

Re: [PATCHES] Blocked post

2007-04-02 Thread Bruce Momjian
Dave Page wrote: > Bruce Momjian wrote: > > Dave Page wrote: > >> Bruce Momjian wrote: > >>> Simon Riggs wrote: > I've sent through v10 of my patch for transaction guarantee = off twice > now and it hasn't shown up on-list. I don't appear to be blocked, so I'm > not sure what the pro

Re: [PATCHES] Current enums patch

2007-04-02 Thread Andrew Dunstan
Tom Dunstan wrote: Let's just throw the error instead. (I agree that enum_in can just fail with "no such label", but CREATE TYPE ought to give a specific error about it.) Agreed. Andrew, you said you had a mostly-working patch already? Working patch attached. If everyone's happy I'll appl

Re: [PATCHES] [Fwd: Deferred Transactions, Transaction Guarantee and COMMITwithout waiting]

2007-04-02 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --- Si

Re: [PATCHES] [HACKERS] Arrays of Complex Types

2007-04-02 Thread David Fetter
On Fri, Mar 30, 2007 at 05:08:42PM -0400, Tom Lane wrote: > David Fetter <[EMAIL PROTECTED]> writes: > > After several rounds of patches, it appears that it might be easier to > > create a new typtype entry, which I'll tentatively call 'a' because it > > seems a little fragile and a lot inelegant a

Re: [PATCHES] Concurrent psql v4 [WIP]

2007-04-02 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --- st

Re: [PATCHES] Current enums patch

2007-04-02 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: > Working patch attached. If everyone's happy I'll apply it. Why not put the create-time length test into EnumValuesCreate's loop, which has to grovel through the list already? I'm wondering why bother with the temp variable in cstring_enum, as opposed t

Re: [PATCHES] Dead Space Map version 3 (simplified)

2007-04-02 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --- IT

Re: [PATCHES] Current enums patch

2007-04-02 Thread Andrew Dunstan
Tom Lane wrote: Andrew Dunstan <[EMAIL PROTECTED]> writes: Working patch attached. If everyone's happy I'll apply it. Why not put the create-time length test into EnumValuesCreate's loop, which has to grovel through the list already? My idea was to do the error check before callin

Re: [PATCHES] [pgsql-patches] O_DIRECT support for Windows

2007-04-02 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --- IT

Re: [PATCHES] non-recursive WITH clause support

2007-04-02 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --- Gr

[PATCHES] Re: [HACKERS] pgsql: Fix for plpython functions; return true/false for boolean,

2007-04-02 Thread Bruce Momjian
Added to TODO: o Allow PL/Python to return boolean rather than 1/0 http://archives.postgresql.org/pgsql-patches/2007-01/msg00596$ --- Guido Goldstein wrote: > Peter Eisentraut wrote: > > Guido Goldstein w

Re: [PATCHES] [HACKERS] Full page writes improvement, code update

2007-04-02 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --- Ko

Re: [PATCHES] pgbench transaction timestamps

2007-04-02 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --- Gr

Re: [PATCHES] Current enums patch

2007-04-02 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> Why not put the create-time length test into EnumValuesCreate's loop, >> which has to grovel through the list already? > My idea was to do the error check before calling TypeCreate. If that > doesn't matter I can move it - it just se

Re: [PATCHES] Warning about LISTEN names

2007-04-02 Thread Bruce Momjian
Tom Lane wrote: > "Greg Sabino Mullane" <[EMAIL PROTECTED]> writes: > > I'll save the full rant for my blog :), but wanted to submit this > > documentation > > patch for this listen gotcha that's been bugging me for a while. I'd like > > to see LISTEN and NOTIFY changed to use a simple text stri

Re: [PATCHES] Updateable cursors patch

2007-04-02 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --- FA

Re: [PATCHES] UTF8MatchText

2007-04-02 Thread Bruce Momjian
I assume this replaces all your earlier multi-byte LIKE patches. Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --

Re: [PATCHES] Re: [HACKERS] [COMMITTERS] pgsql: Add GUC temp_tablespaces to provide a default location for

2007-04-02 Thread Bruce Momjian
This has been saved for the 8.4 release: http://momjian.postgresql.org/cgi-bin/pgpatches_hold --- Bruce Momjian wrote: > > OK, patch reverted. Authors, would you please resubmit with fixes? > Thanks. > > ---

Re: [PATCHES] CREATE TABLE LIKE INCLUDING INDEXES support

2007-04-02 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --- Tr

Re: [PATCHES] scan_recycle_buffers

2007-04-02 Thread Bruce Momjian
Where is the final version of this patch? What patches are stuck in the patch moderator queue? --- Simon Riggs wrote: > On Sat, 2007-03-10 at 07:59 +, Simon Riggs wrote: > > On Fri, 2007-03-09 at 18:05 -0500, Tom Lane w

Re: [PATCHES] HOT WIP Patch - version 6.3

2007-04-02 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --- Pa

Re: [PATCHES] guc patch: Make variables fall back to default values

2007-04-02 Thread Bruce Momjian
I assume this patch is not ready for 8.3, so I added a URL to the TODO list for it. --- Tom Lane wrote: > Joachim Wieland <[EMAIL PROTECTED]> writes: > > On Tue, Mar 13, 2007 at 11:52:38AM -0400, Tom Lane wrote: > >> Why do

Re: [PATCHES] xpath_array with namespaces support

2007-04-02 Thread Bruce Momjian
Nikolay Samokhvalov wrote: > On 3/22/07, Peter Eisentraut <[EMAIL PROTECTED]> wrote: > > Bruce Momjian wrote: > > > Patch applied. > > > > This code seems to think that if an xml datum starts with " > document. That is completely bogus. > > Agreed. I'll fix it. Nikolay, it has been a week, and I

Re: [PATCHES] RESET SESSION

2007-04-02 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --- Ma

Re: [PATCHES] [HACKERS] Arrays of Complex Types

2007-04-02 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --- Da

Re: [PATCHES] ecpg threading vs win32

2007-04-02 Thread Bruce Momjian
Michael, is there any progress on this? --- Michael Meskes wrote: > On Mon, Mar 19, 2007 at 09:48:19AM +0100, Magnus Hagander wrote: > > > Q2. Do we need to use PQescapeStringConn() instead of PQescapeString()? > > >PQes

Re: [PATCHES] Make CLUSTER MVCC-safe

2007-04-02 Thread Bruce Momjian
Heikki Linnakangas wrote: > Alvaro Herrera wrote: > > Heikki Linnakangas wrote: > >> Here's an update, fixing conflict by Tom's recent commit of Simon's > >> patch to skip WAL-inserts when archiving is not enabled. > > > > Hmm, wouldn't it be better if the rewriteheap.c file was in > > access/hea

Re: [PATCHES] index support is NULL

2007-04-02 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --- Te

Re: [PATCHES] Add usage counts to pg_buffercache

2007-04-02 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --- Gr

Re: [PATCHES] Logging checkpoints and other slowdown causes

2007-04-02 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --- Gr

Re: [PATCHES] COPY-able sql log outputs

2007-04-02 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --- FA

Re: [PATCHES] [HACKERS] Arrays of Complex Types

2007-04-02 Thread Alvaro Herrera
Bruce Momjian wrote: > > Your patch has been added to the PostgreSQL unapplied patches list at: > > http://momjian.postgresql.org/cgi-bin/pgpatches > > It will be applied as soon as one of the PostgreSQL committers reviews > and approves it. > So, hum, what happened to the idea of creati

Re: [PATCHES] xpath_array with namespaces support

2007-04-02 Thread Bruce Momjian
Nikolay Samokhvalov wrote: > I apologize for it. I was extremely busy that week. > Fixes will follow ASAP, I'm working on it. 2 days are enough, it's good > deadline for me. > Sorry for delay. Yes, that is fine. Thanks. ---

Re: [PATCHES] [HACKERS] Arrays of Complex Types

2007-04-02 Thread David Fetter
On Mon, Apr 02, 2007 at 10:01:44PM -0400, Alvaro Herrera wrote: > Bruce Momjian wrote: > > > > Your patch has been added to the PostgreSQL unapplied patches list > > at: > > > > http://momjian.postgresql.org/cgi-bin/pgpatches > > > > It will be applied as soon as one of the PostgreSQL commit

Re: [PATCHES] Logging checkpoints and other slowdown causes

2007-04-02 Thread Peter Eisentraut
Greg Smith wrote: > This patch puts entries in the log file around some backend events > that regularly cause client pauses, most of which are visible only > when running with log_min_messages = debug2. Something that is aimed at a user should not be enabled at a "debug" level. Debug levels are

Re: [PATCHES] [HACKERS] Arrays of Complex Types

2007-04-02 Thread Tom Lane
David Fetter <[EMAIL PROTECTED]> writes: > On Mon, Apr 02, 2007 at 10:01:44PM -0400, Alvaro Herrera wrote: >> So, hum, what happened to the idea of creating the array types only >> on demand? > Scotched, as far as I could tell, More like "you submitted a patch that entirely ignores multiple peopl