Re: [HACKERS] Re: [INTERFACES] retrieving varchar size - Mailing list pgsql-hackers

From Thomas G. Lockhart
Subject Re: [HACKERS] Re: [INTERFACES] retrieving varchar size
Date
Msg-id 3544A239.FD32AF09@alumni.caltech.edu
Whole thread Raw
In response to Re: [HACKERS] Re: [INTERFACES] retrieving varchar size  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [HACKERS] Re: [INTERFACES] retrieving varchar size
List pgsql-hackers
> > > We could pass back atttypmod as part of the PGresult.  I can add
> > > that to the TODO list.  Would that help?
> > Yes, that would do it!
> > Thank you for listening to our ravings on this issue.
> Added to TODO:
> * Add pg_attribute.atttypmod/Resdom->restypmod to PGresult structure
> This is a good suggestion.

How do we determine atttypmod for queries like

  select '123' || '456';

?? I might be able to address this with my upcoming type conversion work
but I don't know if we have enough hooks for this right now...

                        - Tom

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] postgres init script things solved
Next
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] Re: [QUESTIONS] Practical SQL Handbook - demo script for postgreSQL