[HACKERS] NOFIXADE / NOPRINTADE

2004-09-22 Thread Neil Conway
There's a bunch of very ugly code in backend/main/main.c that involves the preprocessor constants "NOFIXADE" and "NOPRINTADE". The code seems to be related to support for Alpha and/or ultrix4. NOFIXADE is defined by port/osf.h and port/ultrix4.h, while NOPRINTADE is not defined as far as I can tell

Re: [HACKERS] SQL-Invoked Procedures for 8.1

2004-09-22 Thread Grant Finnemore
Quoth the JDBC spec: public interface CallableStatement extends PreparedStatement The interface used to execute SQL stored procedures. The JDBC API provides a stored procedure SQL escape syntax that allows stored procedures to be called in a standard way for all RDBMSs. This escape syntax has one

Re: [HACKERS] SQL-Invoked Procedures for 8.1

2004-09-22 Thread Gavin Sherry
On Thu, 23 Sep 2004, Grant Finnemore wrote: > Hi Gavin, > > Although I have not read the SQL 2003 spec, my recollection of other database > products' stored procs differed from your description in one significant way, > namely that they could return multiple (and varied) sets of rows. > > For exam

Re: [HACKERS] SQL-Invoked Procedures for 8.1

2004-09-22 Thread Grant Finnemore
Hi Gavin, Although I have not read the SQL 2003 spec, my recollection of other database products' stored procs differed from your description in one significant way, namely that they could return multiple (and varied) sets of rows. For example, a stored proc could do a SELECT over foo and then a SE

Re: [HACKERS] BUG: possible busy loop when connection is closed while trying to establish SSL connection

2004-09-22 Thread Tom Lane
Hannu Krosing <[EMAIL PROTECTED]> writes: > We were bitten by the following bug a few times, when our server tried > to reestablish connections under bad network conditions: > > if connection is closed while trying to get response to SSL setup packet > (i.e. conn->status is CONNECTION_SSL_STARTUP),

[HACKERS] SQL-Invoked Procedures for 8.1

2004-09-22 Thread Gavin Sherry
Hi all, Following is a proposal to implement what SQL2003 calls 'SQL-Invoked Procedures' and what most people refer to as stored procedures. Fujitsu will be funding Neil Conway and I to work on this feature. Procedures -- Procedures are nearly identical to functions. From my reading of S

Re: [HACKERS] CVS configure failure

2004-09-22 Thread Neil Conway
On Wed, 2004-09-22 at 15:29, James William Pye wrote: > I think so. Patch applied with some additional fixes -- the patch as I applied it is attached. Thanks! -Neil Index: doc/src/sgml/installation.sgml === RCS file: /home/neilc/pri

[HACKERS] BUG: possible busy loop when connection is closed while trying to establish SSL connection

2004-09-22 Thread Hannu Krosing
We were bitten by the following bug a few times, when our server tried to reestablish connections under bad network conditions: if connection is closed while trying to get response to SSL setup packet (i.e. conn->status is CONNECTION_SSL_STARTUP), we get a busy loop, as line 1035 in 8.0.0.beta2:

Re: [HACKERS] Variable assignment from dynamic SQL in PL/PgSQL

2004-09-22 Thread Robert Treat
On Tue, 2004-09-21 at 23:28, David Fetter wrote: > Kind people, > > I've figured out something that many others probably have, but I > thought I'd put it out there anyhow. > > As PL/PgSQL doesn't allow assignment of singleton SELECTs and dynamic > queries to variables, as mentioned in the docs. >

Re: [HACKERS] Companies, Version 8.0 release

2004-09-22 Thread Josh Berkus
Oleg, > is this valid for contrib modules ? Absolutely. Provided the contrib modules are *new* for 8.0. -- Josh Berkus Aglio Database Solutions San Francisco ---(end of broadcast)--- TIP 8: explain analyze is your friend

[HACKERS] Postgres 8.0 with gcc 4.0 success

2004-09-22 Thread Gaetano Mendola
Hi all, I succesfull compiled postgres 8.0beta2 with a recent gcc 4.0 snapshot: gcc (GCC) 4.0.0 20040911 (experimental) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR

Re: [HACKERS] todo: comment field for pg users and groups

2004-09-22 Thread Rod Taylor
> There have been noises of adding a new catalog for keeping comments for > shared objects (which would itself be shared, of course). I'm not sure > what the rationale is for not putting them in the pg_shadow catalog. Does TOAST work on shared objects? ---(end of broadca

Re: [HACKERS] todo: comment field for pg users and groups

2004-09-22 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > There have been noises of adding a new catalog for keeping comments for > shared objects (which would itself be shared, of course). I'm not sure > what the rationale is for not putting them in the pg_shadow catalog. The fact that it wouldn't scale conv

Re: [HACKERS] elog in 7.4

2004-09-22 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > On Wed, Sep 22, 2004 at 03:02:22PM +0200, Laszlo Hornyak wrote: >> Tom, is there other way in pg 7.4 than backporting PG_TRY? It seems a lot >> of work. > IIRC PL/Python had a hack involving sigsetjmp (which was removed in > favor of the cleaner PG_TRY)

Re: [HACKERS] todo: comment field for pg users and groups

2004-09-22 Thread Fabien COELHO
Dear Alvaro, Thus I would suggest to add one new text field in pg_group and pg_shadow for this purpose, that could be initialized with something like: CREATE USER calvin COMMENT 'Calvin <[EMAIL PROTECTED]>'; Alternatively, it could be managed with "COMMENT ON ..."? Well, users or groups are

Re: [HACKERS] elog in 7.4

2004-09-22 Thread Alvaro Herrera
On Wed, Sep 22, 2004 at 03:02:22PM +0200, Laszlo Hornyak wrote: > > Tom, is there other way in pg 7.4 than backporting PG_TRY? It seems a lot > of work. IIRC PL/Python had a hack involving sigsetjmp (which was removed in favor of the cleaner PG_TRY). You could try doing that. -- Alvaro Herrera

Re: [HACKERS] todo: comment field for pg users and groups

2004-09-22 Thread Alvaro Herrera
On Wed, Sep 22, 2004 at 01:15:42PM +0200, Fabien COELHO wrote: > As I'm managing accounts for students... I noticed that there does not > seem to be a proper way to keep a comment about a postgresql user account, > such as the full name of the student or its email, that I could see with > \du o

Re: [HACKERS] elog in 7.4

2004-09-22 Thread Laszlo Hornyak
Tom, is there other way in pg 7.4 than backporting PG_TRY? It seems a lot of work. Thanks, Laszlo On Tue, 21 Sep 2004, Tom Lane wrote: > Laszlo Hornyak <[EMAIL PROTECTED]> writes: > > I am implementing a java language handler. If unrecoverable error occurs, > > it needs to send a signal to the

[HACKERS] todo: comment field for pg users and groups

2004-09-22 Thread Fabien COELHO
Dear developers, As I'm managing accounts for students... I noticed that there does not seem to be a proper way to keep a comment about a postgresql user account, such as the full name of the student or its email, that I could see with \du or some system query. My solution is to keep the "mappin