Re: [HACKERS] SQL-Invoked Procedures for 8.1

2004-10-06 Thread Jim C. Nasby
On Mon, Oct 04, 2004 at 03:10:24PM -0400, Alvaro Herrera wrote: So you aren't aware of the dollar-quoting feature? You may want to take a look at that ... Can someone point me to a url? I haven't been able to find anything about this... -- Jim C. Nasby, Database Consultant

Re: [HACKERS] SQL-Invoked Procedures for 8.1

2004-10-06 Thread Alvaro Herrera
On Wed, Oct 06, 2004 at 01:34:00AM -0500, Jim C. Nasby wrote: On Mon, Oct 04, 2004 at 03:10:24PM -0400, Alvaro Herrera wrote: So you aren't aware of the dollar-quoting feature? You may want to take a look at that ... Can someone point me to a url? I haven't been able to find anything

Re: [HACKERS] win32 tablespace handing

2004-10-06 Thread Zeugswetter Andreas SB SD
hardlinks and junctions don't work across physical disks, only symlinks. Where did you read this? I just looked and can see no such restriction. There is no such restriction for junctions, I just tried it to be safe. Andreas ---(end of

Re: [HACKERS] More pgindent bizarreness

2004-10-06 Thread Neil Conway
On Fri, 2004-10-01 at 06:48, Bruce Momjian wrote: Yes, that is what I am thinking. I have worked around other bugs in the C code before by doing things with the shell script though this problem seems hard to clean up with a shell script. I found GNU indent to be even harder to fix. Have you

Re: [HACKERS] Make configure use krb5-config

2004-10-06 Thread Bruce Momjian
I have checked current CVS and the kerberos configuration stuff has changed since 7.4.X, but it doesn't use the krb5_prefix/bin/krb5-config idea you have. Would you download a recent snapshot and resubmit a patch that works against our current configure code? Thanks.

Re: [pgsql-hackers-win32] [HACKERS] win32 tablespace handing

2004-10-06 Thread Reini Urban
Zeugswetter Andreas SB SD schrieb: hardlinks and junctions don't work across physical disks, only symlinks. Where did you read this? I just looked and can see no such restriction. There is no such restriction for junctions, I just tried it to be safe. Yes, sorry. I had old NTFS4 information.

Re: [pgsql-hackers-win32] [HACKERS] win32 tablespace handing

2004-10-06 Thread Andrew Dunstan
Reini Urban said: Zeugswetter Andreas SB SD schrieb: hardlinks and junctions don't work across physical disks, only symlinks. Where did you read this? I just looked and can see no such restriction. There is no such restriction for junctions, I just tried it to be safe. Yes, sorry. I had old

Re: [HACKERS] SQL-Invoked Procedures for 8.1

2004-10-06 Thread Tom Lane
Alvaro Herrera [EMAIL PROTECTED] writes: On Wed, Oct 06, 2004 at 01:34:00AM -0500, Jim C. Nasby wrote: On Mon, Oct 04, 2004 at 03:10:24PM -0400, Alvaro Herrera wrote: So you aren't aware of the dollar-quoting feature? You may want to take a look at that ... Can someone point me to a url? I

[HACKERS] Pl/perl broken on Windows

2004-10-06 Thread Dave Page
I'm getting the following build failure in pl/perl on Win32. I'm guessing this has something to do with the recent rehashing of make/include files, but I don't know what exactly. This is on a fresh checkout. Regards, Dave. make[3]: Entering directory `/cvs/pgsql/src/pl/plperl' gcc -O2

Re: [pgsql-hackers-win32] [HACKERS] win32 tablespace handing

2004-10-06 Thread Bruce Momjian
Andrew Dunstan wrote: Reini Urban said: Zeugswetter Andreas SB SD schrieb: hardlinks and junctions don't work across physical disks, only symlinks. Where did you read this? I just looked and can see no such restriction. There is no such restriction for junctions, I just tried it to be

Re: [pgsql-hackers-win32] [HACKERS] win32 tablespace handing

2004-10-06 Thread Reini Urban
Bruce Momjian schrieb: Andrew Dunstan wrote: Reini Urban said: Zeugswetter Andreas SB SD schrieb: hardlinks and junctions don't work across physical disks, only symlinks. Where did you read this? I just looked and can see no such restriction. There is no such restriction for junctions, I just

Re: [pgsql-hackers-win32] [HACKERS] win32 tablespace handing

2004-10-06 Thread Bruce Momjian
Reini Urban wrote: Bruce Momjian schrieb: Andrew Dunstan wrote: Reini Urban said: Zeugswetter Andreas SB SD schrieb: hardlinks and junctions don't work across physical disks, only symlinks. Where did you read this? I just looked and can see no such restriction. There is no such

Re: [HACKERS] Pl/perl broken on Windows

2004-10-06 Thread Bruce Momjian
OK, I have adjusted the code to use #define for the plperl compile. This should prevent the conflict you are getting when perl defines uid_t too. --- Dave Page wrote: I'm getting the following build failure in pl/perl on

Re: [HACKERS] FunctionCall2 performance

2004-10-06 Thread Mark Wong
On Mon, Oct 04, 2004 at 02:42:43PM -0400, Greg Stark wrote: Mark Wong [EMAIL PROTECTED] writes: Links to results are here: 7.5devel - http://www.osdl.org/projects/dbt2dev/results/dev4-010/128/ 8.0beta3 - http://www.osdl.org/projects/dbt2dev/results/dev4-010/180/ Are those cyclic spikes

Re: [HACKERS] FunctionCall2 performance

2004-10-06 Thread Alvaro Herrera
On Wed, Oct 06, 2004 at 10:01:42AM -0700, Mark Wong wrote: On Mon, Oct 04, 2004 at 02:42:43PM -0400, Greg Stark wrote: Mark Wong [EMAIL PROTECTED] writes: Links to results are here: 7.5devel - http://www.osdl.org/projects/dbt2dev/results/dev4-010/128/ 8.0beta3 -

Re: [HACKERS] DROP TABLESPACE causes panic during recovery

2004-10-06 Thread Bruce Momjian
Is this fixed? --- Tom Lane wrote: Christopher Kings-Lynne [EMAIL PROTECTED] writes: Maybe we could avoid removing it until the next checkpoint? Or is that not enough. Maybe it could stay there forever :/ Part of

Re: [HACKERS] SRF/dropped column bug

2004-10-06 Thread Bruce Momjian
I can confirm this bug still exists in CVS. --- Joe Conway wrote: I see this behavior with CVS tip: CREATE TABLE wibble (a integer, b integer); INSERT INTO wibble VALUES (1,1); ALTER TABLE wibble ADD COLUMN c BIGINT;

Re: [HACKERS] [PATCHES] That dump-comments-on-composite-type-columns

2004-10-06 Thread Bruce Momjian
Christopher Kings-Lynne wrote: Christopher Kings-Lynne [EMAIL PROTECTED] writes: OK, I can do this, but I don't think I'll have time for the first beta. No problem. Another interesting think I noticed in pg_dump is dumping of LOBs. It seems to declare a cursor that fetches the blobs

Re: [HACKERS] PITR question

2004-10-06 Thread Bruce Momjian
[EMAIL PROTECTED] wrote: Hi Every one. At least I made PITR working however I still have 2 questions: 1) It seems there is a slight bug in this case: select pg_backup_start('test); ... make backup select pg_backup_end(); psql database drp table note the time in logs pg_ctl stop

Re: [HACKERS] DROP TABLESPACE causes panic during recovery

2004-10-06 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: Is this fixed? Yes. regards, tom lane ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not

Re: [HACKERS] Two-phase commit

2004-10-06 Thread Tom Lane
Quite some time ago, Heikki Linnakangas [EMAIL PROTECTED] wrote: I haven't received any comments and there hasn't been any discussion on the implementation, I suppose that nobody has given it a try. :( I finally got around to taking a close look at this. There's a good bit undone, as you well

Re: Re: [HACKERS] PITR question

2004-10-06 Thread simon
Bruce Momjian [EMAIL PROTECTED] wrote on 06.10.2004, 21:15:34: [EMAIL PROTECTED] wrote: Hi Every one. At least I made PITR working however I still have 2 questions: 1) It seems there is a slight bug in this case: select pg_backup_start('test); ... make backup select

[HACKERS] pgindent complaint of the day

2004-10-06 Thread Tom Lane
This case in xlog.c is representative of a disease that pgindent has had for awhile: @@ -4276,7 +4300,8 @@ StartupXLOG(void) if (needNewTimeLine)/* stopped because of stop request */ ereport(FATAL,

Re: Re: Re: [HACKERS] PITR question

2004-10-06 Thread Tom Lane
[EMAIL PROTECTED] writes: [EMAIL PROTECTED] wrote: ... you end up with a core dump (signal 6) and an error saying that you can't stop before end of backup. Was this corrected? I don't see any followups to it in the archives. Not by me, though I was definitely working on crash recovery

Re: [HACKERS] Two-phase commit

2004-10-06 Thread Oliver Jowett
Tom Lane wrote: At the API level, I like the PREPARE/COMMIT/ROLLBACK statements, but I think you have missed a bet in that it needs to be possible to issue COMMIT PREPARED gid for the same gid several times without error. Consider a scenario where the transaction monitor crashes during the commit

Re: [HACKERS] Two-phase commit

2004-10-06 Thread Tom Lane
Oliver Jowett [EMAIL PROTECTED] writes: At the API level, I like the PREPARE/COMMIT/ROLLBACK statements, but I think you have missed a bet in that it needs to be possible to issue COMMIT PREPARED gid for the same gid several times without error. Isn't this usually where the GTM would issue

Re: [HACKERS] Two-phase commit

2004-10-06 Thread Oliver Jowett
Tom Lane wrote: Oliver Jowett [EMAIL PROTECTED] writes: At the API level, I like the PREPARE/COMMIT/ROLLBACK statements, but I think you have missed a bet in that it needs to be possible to issue COMMIT PREPARED gid for the same gid several times without error. Isn't this usually where the GTM

Re: [HACKERS] Two-phase commit

2004-10-06 Thread Rod Taylor
On Wed, 2004-10-06 at 18:50, Tom Lane wrote: Oliver Jowett [EMAIL PROTECTED] writes: At the API level, I like the PREPARE/COMMIT/ROLLBACK statements, but I think you have missed a bet in that it needs to be possible to issue COMMIT PREPARED gid for the same gid several times without error.

Re: [HACKERS] Two-phase commit

2004-10-06 Thread Tom Lane
Oliver Jowett [EMAIL PROTECTED] writes: Tom Lane wrote: Well, the question is how long must the individual databases retain state with which to answer recover requests. As I understand it, you don't need to keep state for committed txns, I think that's clearly wrong: TM -- DB:

Re: [HACKERS] Two-phase commit

2004-10-06 Thread Alvaro Herrera
On Wed, Oct 06, 2004 at 05:46:10PM -0400, Tom Lane wrote: You were concerned about how to mark prepared transactions in pg_clog, given that Alvaro had already commandeered state '11' for subtransactions. Since only a toplevel transaction can be prepared, it might work to allow state '11'

Re: [HACKERS] Two-phase commit

2004-10-06 Thread Oliver Jowett
Tom Lane wrote: Oliver Jowett [EMAIL PROTECTED] writes: Tom Lane wrote: Well, the question is how long must the individual databases retain state with which to answer recover requests. As I understand it, you don't need to keep state for committed txns, I think that's clearly wrong: TM

Re: [HACKERS] Two-phase commit

2004-10-06 Thread Tom Lane
Alvaro Herrera [EMAIL PROTECTED] writes: I am concerned with a different issue: what issues arise regarding snapshots? Do concurrent xacts see a prepared one as running? I'm not sure but I think so. So they have to be able to at least get its Xid, no? Hmm, that's a good point. It seems

Re: [HACKERS] Two-phase commit

2004-10-06 Thread Oliver Jowett
Rod Taylor wrote: On Wed, 2004-10-06 at 18:50, Tom Lane wrote: Well, the question is how long must the individual databases retain state with which to answer recover requests. I don't like forever, so I'm proposing that there should be an explicit command to say you can forget about this gid.

Re: [HACKERS] SQL-Invoked Procedures for 8.1

2004-10-06 Thread Gavin Sherry
On Thu, 23 Sep 2004, Josh Berkus wrote: For anyone who doesn't know what I'm talking about, it's this form: CREATE PROCEDURE do_some_work ( alpha INT, beta INT, gamma TEXT ) etc. Where you can: CALL do_some_work( alpha = 5, beta = 7 ) .. and then gamma picks up its default, if any, or

[HACKERS] initdb crash

2004-10-06 Thread Euler Taveira de Oliveira
Hi, I saw a initdb crashes when it is creating the template1 database. I couldn't figure out what is wrong. I attached the backtrace and some architecture/compiler info. If someone needs more info, drop me a line. = Euler Taveira de Oliveira euler[at]yahoo_com_br

Re: [HACKERS] pgindent complaint of the day

2004-10-06 Thread Bruce Momjian
Tom Lane wrote: Bruce Momjian [EMAIL PROTECTED] writes: and this does exactly as you describe by putting the comment on its own line. I just changed it to: ... so that the new comment will have the same indenting as the else that was input. If it were the else's indent plus one more

Re: [HACKERS] pgindent complaint of the day

2004-10-06 Thread Bruce Momjian
Tom Lane wrote: This case in xlog.c is representative of a disease that pgindent has had for awhile: @@ -4276,7 +4300,8 @@ StartupXLOG(void) if (needNewTimeLine)/* stopped because of stop request */ ereport(FATAL,

Re: [HACKERS] SRF/dropped column bug

2004-10-06 Thread Bruce Momjian
Tom Lane wrote: Bruce Momjian [EMAIL PROTECTED] writes: I can confirm this bug still exists in CVS. I have a fix for this, but cannot commit just yet as we seem to be having network problems again :-( Yes, I have already beeped Marc. -- Bruce Momjian|

Re: [HACKERS] SRF/dropped column bug

2004-10-06 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: I can confirm this bug still exists in CVS. I have a fix for this, but cannot commit just yet as we seem to be having network problems again :-( regards, tom lane ---(end of

Re: [HACKERS] pgindent complaint of the day

2004-10-06 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: and this does exactly as you describe by putting the comment on its own line. I just changed it to: ... so that the new comment will have the same indenting as the else that was input. If it were the else's indent plus one more tab it would be

Re: [HACKERS] pgindent complaint of the day

2004-10-06 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: Tom Lane wrote: If it were the else's indent plus one more tab it would be reasonably sane; it'd match the indentation of what comes next. OK, I can do that but consider: [ other case ] Just out of curiosity, what will pgindent do when re-run on the

Re: [HACKERS] initdb crash

2004-10-06 Thread Gavin Sherry
On Wed, 6 Oct 2004, Euler Taveira de Oliveira wrote: Hi, I saw a initdb crashes when it is creating the template1 database. I couldn't figure out what is wrong. I attached the backtrace and some architecture/compiler info. If someone needs more info, drop me a line. Can you run initdb with

Re: [HACKERS] SQL-Invoked Procedures for 8.1

2004-10-06 Thread Josh Berkus
Gavin, My real question, however, is do we want default values at all. Josh has been fairly keen on them but I haven't seen much outright support for the idea other than Joe and Joshua (perhaps a few others) putting the argument that anything which eases the burden of migration from SQL