From: | Michael Meskes <meskes(at)postgresql(dot)org> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Cc: | gary(dot)cowell(at)gmail(dot)com |
Subject: | Re: BUG #14460: ecpg dynamic describe data types incorrect |
Date: | 2016-12-17 15:32:51 |
Message-ID: | 1481988771.2224.16.camel@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
> Then run an ecpg program to select and describe the data, the data
> types
> come back as:
>
> a = var (type: 1)
> b = text (type: 1)
> c = char (type: 1)
> d = 1 (type: 5)
>
> I.e. the sqlda data types for the CHAR , VARCHAR and TEXT columns, is
> all
> type 1.
CHAR and TEXT should be the same. However, varchar should be different
IIRC. There is definitely a case that maps VARCHAROID
to SQL3_CHARACTER_VARYING which equals 12. Does the log file, if you
enable debugging, show the same type information?
> According to ecpgtype.h
> ...
ecpgtype.h is PostgreSQL internal type information, the descriptor is
supposed to handle types as defined by the standard. Those definitions
are in sql3types.h.
Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! SF 49ers! Use Debian GNU/Linux, PostgreSQL
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-12-17 17:48:22 | Re: BUG #14469: Wrong cost estimates for merge append plan with partitions. |
Previous Message | Alexey Ermakov | 2016-12-17 11:34:13 | Re: BUG #14469: Wrong cost estimates for merge append plan with partitions. |