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

Proposal - libpq Type System beta-0.8a (was PGparam)

From: Andrew Chernow <ac(at)esilo(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Proposal - libpq Type System beta-0.8a (was PGparam)
Date: 2008-01-08 14:38:16
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
We previously tried to send this proposal/patch, but it never showed up. 
  We tried twice in a 16 hour period.  It might be something with the 
attachment, who knows.  This time, we are providing a URL instead of 
attaching the patch. Please disregard previous emails if they come back 
from never-never-land.

What was previously called PGparam is now called libpq Type System. 
PGparam is just one structure within the Type System.

This is an updated proposal/patch for a Type System in libpq. Basically, 
it allows applications to send binary formatted paramters "put" and 
receive text or binary formatted results "get" through a printf-style 
interface.  It also adds the ability to register user-defined types, 
sub-classes of existing types as well as composites.  There is full 
support for arrays, composites, composite arrays and nested composites.

There are four documents included within the tar:

type-system-api.txt - Documents the API functions

type-specifiers.txt - This explains the type specifier syntax 
(printf-style).  It also documents how to construct parameters and get 
result values for every supported type.

composites-arrays.txt - Documents the use of arrays, composites and 
arrays of composites.  This proposed API has full support for nested 
arrays or composites.

type-handlers.txt - Explains how to register and implement a libpq type 
handler.  Types can be sub-classed.

The patch is named typesys.patch.  There is a regression test named 
regression-test.c and a makefile for it named makefile.typesys.

Andrew & Merlin


pgsql-hackers by date

Next:From: Andrew SullivanDate: 2008-01-08 14:48:05
Subject: Re: VACUUM FULL out of memory
Previous:From: Roberts, JonDate: 2008-01-08 14:19:40
Subject: Re: Psql command-line completion bug

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