pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andreas Pflug <Andreas.Pflug@web.de>
Cc: pgsql-odbc@postgresql.org
Subject: Re: using domain types with ODBC, esp. lo
Date: Fri, 21 Mar 2003 11:31:52 -0500
Message-ID: <13532.1048264312@sss.pgh.pa.us> (raw)
In-Reply-To: <3E7B3BA7.20709@web.de>
References: <3E7B3BA7.20709@web.de>

Andreas Pflug <Andreas.Pflug@web.de> writes:
> The well-known data types PG_TYPE_DATETIME, PG_TYPE_TIMESTAMP_NO_TMZONE, 
> PG_TYPE_TIME, PT_TYPE_TIME_WITH_TMZONE are handled in a special way 
> concerning the atttypmod field. This will fail for domain types of that 
> base type.

This is correct, since the domain won't expose the atttypmod it assigns
to the underlying type.

> Actually, best thing for this problems would be if the backend would 
> deliver the base type oid, not the user type oid.

There was some discussion of that idea in pgsql-hackers last week, but
we didn't come to a definite conclusion.  How do others feel about it?

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <13532.1048264312@sss.pgh.pa.us>
Permalink:  ../13532.1048264312@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13532.1048264312@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Andreas.Pflug@web.de, pgsql-odbc@postgresql.org
  Subject: Re: using domain types with ODBC, esp. lo
  In-Reply-To: <13532.1048264312@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox