Received: from candle.pha.pa.us (root@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.8.8/8.7.5) with ESMTP id NAA04291; Thu, 23 Apr 1998 13:01:40 -0400 (EDT) Received: (from maillist@localhost) by candle.pha.pa.us (8.8.5/8.8.5) id MAA26069; Thu, 23 Apr 1998 12:36:46 -0400 (EDT) From: Bruce Momjian Message-Id: <199804231636.MAA26069@candle.pha.pa.us> Subject: Re: [HACKERS] retrieving varchar size To: byronn@insightdist.com (Byron Nikolaidis) Date: Thu, 23 Apr 1998 12:36:45 -0400 (EDT) Cc: pgsql-hackers@postgreSQL.org, pgsql-interfaces@postgreSQL.org In-Reply-To: <353F5423.85F6FBCB@insightdist.com> from "Byron Nikolaidis" at Apr 23, 98 10:45:55 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > > Hello, > > I was wondering if it would be possible, in the Postgres backend, to > send back the defined column size for the varchar data type (and > possibly the char() type, i.e., bpchar) on a query? Currently, it just > sends back -1 for the size, which makes it difficult in the frontend > (i.e., odbc driver) to determine what the size of the column is. > This is kind of tough to do. -- Bruce Momjian | 830 Blythe Avenue maillist@candle.pha.pa.us | Drexel Hill, Pennsylvania 19026 + If your life is a hard drive, | (610) 353-9879(w) + Christ can be your backup. | (610) 853-3000(h)