pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <bruce@momjian.us>
Cc: Tatsuo Ishii <ishii@postgresql.org>
Cc: pg@heroku.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: PQclientEncoding() returns -1, resulting in possible assertion failure in psql
Date: Sat, 22 Mar 2014 11:59:13 -0400
Message-ID: <19855.1395503953@sss.pgh.pa.us> (raw)
In-Reply-To: <20140322155505.GA17107@momjian.us>
References: <CAM3SWZSU2XSb0cKDreoQnMSge7xN5q32XNC3LE0wfuke-V9BRQ@mail.gmail.com>
	<14465.1386526658@sss.pgh.pa.us>
	<15210.1386529004@sss.pgh.pa.us>
	<20131209.081735.1321847791044178990.t-ishii@sraoss.co.jp>
	<20140322015325.GA21843@momjian.us>
	<20140322151723.GB21843@momjian.us>
	<20140322155505.GA17107@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Bruce Momjian <bruce@momjian.us> writes:
> Also, what is the difference between _PG_LAST_ENCODING_, which is the
> last encoding enum, and the pg_wchar_tbl length calculation?  Are they
> the same?

They certainly should be; I don't think it's the responsibility of these
functions to defend against them not being so.

> If so, we should just use _PG_LAST_ENCODING_.

Well, we should use PG_VALID_ENCODING() imo.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (12+ messages)  latest in thread

Message-ID: <19855.1395503953@sss.pgh.pa.us>
Permalink:  ../19855.1395503953@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19855.1395503953@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, bruce@momjian.us, ishii@postgresql.org, pg@heroku.com
  Subject: Re: PQclientEncoding() returns -1, resulting in possible assertion failure in psql
  In-Reply-To: <19855.1395503953@sss.pgh.pa.us>
  References: <CAM3SWZSU2XSb0cKDreoQnMSge7xN5q32XNC3LE0wfuke-V9BRQ@mail.gmail.com> <14465.1386526658@sss.pgh.pa.us> <15210.1386529004@sss.pgh.pa.us> <20131209.081735.1321847791044178990.t-ishii@sraoss.co.jp> <20140322015325.GA21843@momjian.us> <20140322151723.GB21843@momjian.us> <20140322155505.GA17107@momjian.us> <19855.1395503953@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox