Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Revised proposal for libpq and FE/BE protocol changes

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane)
Cc: pgsql-hackers(at)postgreSQL(dot)org, pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Revised proposal for libpq and FE/BE protocol changes
Date: 1998-04-28 16:42:51
Message-ID: 199804281642.MAA19492@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-interfaces
> 2. The RowDescription ('T') message is extended by adding a new value
> for each field.  Just after the type-size value, there will now be
> an int16 "atttypmod" value.  (Would someone provide text specifying
> exactly what this value means?)  libpq will store this value in
> a new "adtmod" field of PGresAttDesc structs.

>From src/include/catalog/pg_attribute.h:

    /*
     * atttypmod records type-specific modifications supplied at table
     * creation time, and passes it to input and output functions as the
     * third argument.
     */

Currently only used for char() and varchar(), and includes a 4-byte
header.


-- 
Bruce Momjian                          |  830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

In response to

pgsql-hackers by date

Next:From: ocieDate: 1998-04-28 18:03:09
Subject: Re: [HACKERS] Revised proposal for libpq and FE/BE protocol changes
Previous:From: Tom LaneDate: 1998-04-28 16:21:55
Subject: Revised proposal for libpq and FE/BE protocol changes

pgsql-interfaces by date

Next:From: ocieDate: 1998-04-28 18:03:09
Subject: Re: [HACKERS] Revised proposal for libpq and FE/BE protocol changes
Previous:From: Tom LaneDate: 1998-04-28 16:21:55
Subject: Revised proposal for libpq and FE/BE protocol changes

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group