Re: [HACKERS] retrieving varchar size

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: byronn(at)insightdist(dot)com (Byron Nikolaidis)
Cc: pgsql-hackers(at)postgreSQL(dot)org, pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [HACKERS] retrieving varchar size
Date: 1998-04-23 16:36:45
Message-ID: 199804231636.MAA26069@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces

>
> 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(at)candle(dot)pha(dot)pa(dot)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)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-04-23 16:45:42 Re: [HACKERS] Re: [INTERFACES] retrieving varchar size
Previous Message Gran Thyni 1998-04-23 16:29:22 Re: [HACKERS] Re: [QUESTIONS] How to use memory instead of hd?

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bruce Momjian 1998-04-23 16:45:42 Re: [HACKERS] Re: [INTERFACES] retrieving varchar size
Previous Message Michael Moss 1998-04-23 16:34:35 Can't connect with ODBC