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

Bugs: Programming Language Functions

From: "Andrew C(dot)R(dot) Martin" <a(dot)c(dot)r(dot)martin(at)reading(dot)ac(dot)uk>
To: interfaces(at)postgresql(dot)org, docs(at)postgresql(dot)org, hackers(at)postgresql(dot)org
Subject: Bugs: Programming Language Functions
Date: 2000-04-11 11:42:01
Message-ID: 00041112551002.24969@sapc13.rdg.ac.uk (view raw or flat)
Thread:
Lists: pgsql-docspgsql-interfaces
First my apologies if this is out of date. I'm working with PgSQL 6.5.2 and not
the latest betas: a) through lack of time b) it's a production system, I can't
really afford to be playing with a beta.

Consequently the following may no longer be true and may have been fixed.
However, they certainly were broken in 6.5.2. It is actually only one problem,
but spreads across docs and the programming interface.

Apologies also for the cross-posting!

First the documentation problem. In the programmer docs, Chapter 4. Extensing
SQL: Functins (page x414.htm), under the C examples, the text refers to the
'TUPLE' type. This certainly used to be the case but has now been superceeded
by the type 'TupleTableSlot'

This then links onto the code installation problems, as the header files in the
installed include directory do not have a typedef for TupleTableSlot. This is
defined in .../src/include/executor/tuptable.h Just copying this across to the
installation directory causes no end of other files to be needed as well (e.g.
storgae/buf.h, access/tupdesc.h, access/htup.h - and these in turn require
loads of other files.....)

Surely TupleTableSlot should be defined in libpq-fe.h as should the prototype
for GetAttributeByName(). It would be nice to have TUPLE #defined as
TupleTableSlot so that old code doesn't break!!!!

Andrew

--
Dr. Andrew C.R. Martin          EMail:  a(dot)c(dot)r(dot)martin(at)reading(dot)ac(dot)uk  (work)
Lecturer in Bioinformatics              andrew(at)stagleys(dot)demon(dot)co(dot)uk (home)
University of Reading
Tel.: +44 (0)118 987 5123x7022  Fax:    +44 (0)118 931 0180

Responses

pgsql-docs by date

Next:From: Vince VielhaberDate: 2000-04-11 13:52:49
Subject: Re: Re: Postgres vs. PostgreSQL
Previous:From: Jan WieckDate: 2000-04-11 11:39:56
Subject: Re: Updated docs needed for 7.0

pgsql-interfaces by date

Next:From: Constantin TeodorescuDate: 2000-04-11 13:36:51
Subject: No default operator type for indexes for numeric fields???
Previous:From: Kovacs Zoltan SandorDate: 2000-04-11 11:03:51
Subject: WinODBC driver doesn't abort transaction on refint violation

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