pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas G. Lockhart <lockhart@alumni.caltech.edu>
To: Bruce Momjian <maillist@candle.pha.pa.us>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Postgres Hackers List <hackers@postgresql.org>
Subject: Re: [DOCS] Re: FE/BE protocol revision patch
Date: Wed, 20 May 1998 01:07:57 +0000
Message-ID: <35622CED.9B435442@alumni.caltech.edu> (raw)
References: <199805191813.OAA20499@candle.pha.pa.us>

> > 1. Implement addition of atttypmod field to RowDescriptor messages.
> >    The client-side code is there but ifdef'd out.  I have no idea
> >    what to change on the backend side.  The field should be sent
> >    only if protocol >= 2.0, of course.

Hmm. I was hoping to do something in the backend to allow data types
like numeric(p,s) which take multiple qualifying arguments (in this
case, precision and scale). One possibility was to shoehorn both fields
into the existing atttypmod 16-bit field.

Seems like atttypmod is now being used for things outside of the
backend, but I'm not sure how to support these other uses with these
other possible data types.

A better general approach to the type qualifier problem might be to
define a variable-length data type which specifies column
characteristics, and then pass that around. For character strings, it
would have one field, and for numeric() and decimal() it would have two.

Comments? Ideas??

                      - Tom



view thread (3+ messages)  latest in thread

Message-ID: <35622CED.9B435442@alumni.caltech.edu>
Permalink:  ../35622CED.9B435442@alumni.caltech.edu/
Also on:    postgresql.org/message-id/35622CED.9B435442@alumni.caltech.edu

 · 

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: lockhart@alumni.caltech.edu, maillist@candle.pha.pa.us, tgl@sss.pgh.pa.us, hackers@postgresql.org
  Subject: Re: [DOCS] Re: FE/BE protocol revision patch
  In-Reply-To: <35622CED.9B435442@alumni.caltech.edu>

* 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