Libpq: PQftype, PQfsize - Mailing list pgsql-hackers

From Bozena Potempa
Subject Libpq: PQftype, PQfsize
Date
Msg-id E1OipiQ-0001av-Ua@ns.otc.pl
Whole thread Raw
Responses Re: Libpq: PQftype, PQfsize  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

I have a test table with varchar(40) column. After executing the following
query: 
select substr(fc,1,2) from test
PQftype returns for the result column PG_TYPE_TEXT and PQfsize returns -1. 
Is it the expected behaviour? The most suprising for me is PQfsize. 
Tested on PostgreSQL 8.4, 32-bit Windows.
Thank you in advance for explanations.

Bozena



pgsql-hackers by date:

Previous
From: Steve Atkins
Date:
Subject: Re: host name support in pg_hba.conf
Next
From: Tom Lane
Date:
Subject: Re: Session timeout on commitfest.postgresql.org