Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id D5D239FB266 for ; Sun, 8 Jul 2007 12:16:29 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 98579-07 for ; Sun, 8 Jul 2007 12:16:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.allcoast.net (mail.allcoast.net [65.97.131.74]) by postgresql.org (Postfix) with ESMTP id 8F8139FA5C8 for ; Sun, 8 Jul 2007 12:16:25 -0300 (ADT) Received: from 70.89.14.245 ([70.89.14.245]) by mail.allcoast.net for pgsql-general@postgresql.org; Sun, 8 Jul 2007 11:16:43 -0400 To: pgsql-general@postgresql.org From: "Mike Gould" Reply-To: fasupport@allcoast.net Subject: feature requests In-Reply-To: 15092.1183852203@sss.pgh.pa.us Message-ID: <20070708151643.83cfaf33@mail.allcoast.net> Date: Sun, 08 Jul 2007 11:16:43 -0400 X-User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 1.1.4322) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-----------fda8ae9265146784c421aa0e48d524e0" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.903 tagged_above=0 required=5 tests=AWL=1.866, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, HTML_MESSAGE=0.001, RCVD_NUMERIC_HELO=1.5 X-Spam-Level: X-Archive-Number: 200707/296 X-Sequence-Number: 116897 This is a multi-part message in MIME format. -------------fda8ae9265146784c421aa0e48d524e0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I would like to see a CREATE Variable dataname datatype added. The scope= of these variables would be global. Along this same line I would like = to see a way to have a trigger or rule fired upon connection initializat= ion. This would allow for these type of variables to be SET along with = other defaults that need to be setup on a per connection basis from the = server side instead of the client application. Best Regards, Michael Gould All Coast Intermodal Services, Inc. 904-376-7030 =5F=5F=5F=5F=5F =20 From: Tom Lane [mailto:tgl@sss.pgh.pa.us] To: Naz Gassiep [mailto:naz@mira.net] Cc: pgsql-general@postgresql.org Sent: Sat, 07 Jul 2007 19:50:03 -0400 Subject: Re: [GENERAL] Changing DB Encodings=20 Naz Gassiep writes: > Tom Lane wrote: >> No, that implies a lack of error checking. > Surely, then, that's a bug=3F Shouldn't postmaster check if a DB is in= an > encoding that differs from the selected locale=3F Yeah, it should. Whether it can is a different question. Part of the problem here is the lack of a reliable way to tell *which* encoding is implied by a locale. On some systems you can get a poorly-standardized string name for the locale's encoding; on others you can't get anything. There's been some experimental code in initdb for awhile now that tries to guess encoding from locale. I have not heard reports of it failing lately, so maybe we could promote it into a hard error check, or at least a backend-side warning at CREATE DATABASE time. It still won't help on old systems without nl=5Flanginfo(CODESET), though. (But how many of those are left=3F That call is specified by the Single Unix Spec. Anybody know if it works on Windows=3F) regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ=3F http://www.postgresql.org/docs/faq =20 =20 =20 -------------fda8ae9265146784c421aa0e48d524e0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
I would like to see a CREATE Variable dataname datatype added. The = scope of these variables would be global.  Along this same line I w= ould like to see a way to have a trigger or rule fired upon connection i= nitialization.  This would allow for these type of variables to be = SET along with other defaults that need to be setup on a per connection = basis from the server side instead of the client application.

<= BR>Best Regards,

Michael Gould
All Coast Intermodal Services, = Inc.
904-376-7030

From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
To: Naz Gassi= ep [mailto:naz@mira.net]
Cc: pgsql-general@postgresql.org
<= B>Sent: Sat, 07 Jul 2007 19:50:03 -0400
Subject: Re: [GENE= RAL] Changing DB Encodings

Naz Gassiep <naz@mira.net> writes:
> Tom Lane wrote:
>&= gt; No, that implies a lack of error checking.

> Surely, then,= that's a bug=3F Shouldn't postmaster check if a DB is in an
> enc= oding that differs from the selected locale=3F

Yeah, it should. W= hether it can is a different question.

Part of the problem here i= s the lack of a reliable way to tell
*which* encoding is implied by a= locale. On some systems you
can get a poorly-standardized string nam= e for the locale's encoding;
on others you can't get anything.
There's been some experimental code in initdb for awhile now that tries=
to guess encoding from locale. I have not heard reports of it failin= g
lately, so maybe we could promote it into a hard error check, or at=
least a backend-side warning at CREATE DATABASE time. It still won't=
help on old systems without nl=5Flanginfo(CODESET), though. (But how=
many of those are left=3F That call is specified by the Single Unix<= BR>Spec. Anybody know if it works on Windows=3F)

regards, tom lan= e

---------------------------(end of broadcast)------------------= ---------
TIP 3: Have you checked our extensive FAQ=3F

http://www.pos= tgresql.org/docs/faq
 
 
-------------fda8ae9265146784c421aa0e48d524e0--