Re: [pgsql-patches] subject tag

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: PostgreSQL www <pgsql-www(at)postgresql(dot)org>
Subject: Re: [pgsql-patches] subject tag
Date: 2007-01-19 16:18:19
Message-ID: 200701191618.l0JGIJt11154@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www


Why does the patches list now have a lowercase tag, "[pgsql-patches]"?
The jobs list is also lowercase.

---------------------------------------------------------------------------

----- Forwarded message from FAST PostgreSQL -----

X-Greylist: from auto-whitelisted by SQLgrey-1.7.4
X-SEF-Processed: 5_0_0_816__2007_01_19_17_44_12
Date: Sat, 20 Jan 2007 04:44:51 +1100
From: FAST PostgreSQL <fastpgs(at)fast(dot)fujitsu(dot)com(dot)au>
Reply-To: FAST PostgreSQL <fastpgs(at)fast(dot)fujitsu(dot)com(dot)au>
To: Neil Conway <neilc(at)samurai(dot)com>
cc: pgsql-patches(at)postgresql(dot)org
Message-ID: <12753(dot)10921169188931(dot)fast(dot)fujitsu(dot)com(dot)au(at)MHS>
In-Reply-To: <1169186550(dot)27197(dot)10(dot)camel(at)localhost(dot)localdomain>
References: <12753(dot)10901169180733(dot)fast(dot)fujitsu(dot)com(dot)au(at)MHS>
References: <1169186550(dot)27197(dot)10(dot)camel(at)localhost(dot)localdomain>
Subject: Re: [pgsql-patches] pg_get_domaindef
x-scalix-Hops: 1
Organization: FAST
X-Mailer: KMail [version 1.3.2]
Content-Disposition: inline
X-Virus-Scanned: by amavisd-new at mail1.fujitsu.com.au
X-Virus-Scanned: Maia Mailguard 1.0.1
X-Mailing-List: pgsql-patches
List-Archive: <http://archives.postgresql.org/pgsql-patches>
List-Help: <mailto:majordomo(at)postgresql(dot)org?body=help>
List-Id: <pgsql-patches.postgresql.org>
List-Owner: <mailto:pgsql-patches-owner(at)postgresql(dot)org>
List-Post: <mailto:pgsql-patches(at)postgresql(dot)org>
List-Subscribe: <mailto:majordomo(at)postgresql(dot)org?body=sub%20pgsql-patches>
List-Unsubscribe: <mailto:majordomo(at)postgresql(dot)org?body=unsub%20pgsql-patches>
Precedence: bulk
Sender: pgsql-patches-owner(at)postgresql(dot)org

On Fri, 19 Jan 2007 17:02, Neil Conway wrote:
> On Sat, 2007-01-20 at 02:28 +1100, FAST PostgreSQL wrote:
> > Attached is a small patch that implements the pg_get_domaindef(oid)
> > function.
>
> A few minor comments:
>
> - don't use C++-style comments

OK. Can do.

>
> - why does this code append a "-" to the output when SPI_processed != 1,
> rather than erroring out?

get_ruledef() does the same. As the user gets a '-' in that case when a
non-existent oid is given, I just wanted to be consistent. Maybe a wrong
idea ?

>
> - you probably want to elog(ERROR) if typeTuple is invalid:

Of course.

> + if (typnotnull || constraint != NULL)
> + {
> + if ( ( (contype != NULL) && (strcmp(contype,
> "c") != 0) ) || typnotnull )
> + {
> + appendStringInfo(&buf, "CONSTRAINT ");
> + }
> + if (typnotnull)
> + {
> + appendStringInfo(&buf, "NOT NULL ");
> + }
> + }
> + if (constraint != NULL)
> + {
> + appendStringInfo(&buf,
> quote_identifier(constraint));
> + }
>
> This logic seems pretty awkward. Perhaps simpler would be a check for
> typnotnull (and then appending "CONSTRAINT NOT NULL"), and then handling
> the non-typnotnull branch separately.

Yeah agree.

>
> -Neil

Rgds,
Arul Shaji

This is an email from Fujitsu Australia Software Technology Pty Ltd, ABN 27 003 693 481. It is confidential to the ordinary user of the email address to which it was addressed and may contain copyright and/or legally privileged information. No one else may read, print, store, copy or forward all or any of it or its attachments. If you receive this email in error, please return to sender. Thank you.

If you do not wish to receive commercial email messages from Fujitsu Australia Software Technology Pty Ltd, please email unsubscribe(at)fast(dot)fujitsu(dot)com(dot)au

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
----- End of forwarded message from FAST PostgreSQL -----

--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

Browse pgsql-www by date

  From Date Subject
Next Message Jim C. Nasby 2007-01-19 21:45:22 Who reads the owner addresses?
Previous Message Devrim GUNDUZ 2007-01-18 14:39:14 Sourceforce updated