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
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-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

Browse pgsql-docs by date

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

Browse pgsql-interfaces by date

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