From: Andrew C.R. Martin <a.c.r.martin@reading.ac.uk>
To: interfaces@postgresql.org
To: docs@postgresql.org
To: hackers@postgresql.org
Subject: Bugs: Programming Language Functions
Date: Tue, 11 Apr 2000 12:42:01 +0100
Message-ID: <00041112551002.24969@sapc13.rdg.ac.uk> (raw)
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.c.r.martin@reading.ac.uk (work)
Lecturer in Bioinformatics andrew@stagleys.demon.co.uk (home)
University of Reading
Tel.: +44 (0)118 987 5123x7022 Fax: +44 (0)118 931 0180
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: a.c.r.martin@reading.ac.uk, interfaces@postgresql.org, docs@postgresql.org, hackers@postgresql.org
Subject: Re: Bugs: Programming Language Functions
In-Reply-To: <00041112551002.24969@sapc13.rdg.ac.uk>
* 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