From: Bruce Momjian <bruce@momjian.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Dmitriy Igrishin <dmitigr@gmail.com>
Cc: pgsql-docs@postgresql.org
Subject: Re: Terms.
Date: Mon, 20 Sep 2010 11:29:21 -0400 (EDT)
Message-ID: <201009201529.o8KFTLQ18950@momjian.us> (raw)
In-Reply-To: <AANLkTin2wu81c_TfQijqU=CGH=fFF+1g-LF=ArQopCsy@mail.gmail.com>
Robert Haas wrote:
> With respect to PQnfields() vs. PQftablecol(), I think the word
> "fields" is being used to refer to the columns of the result set, and
> the word "columns" to refer to the columns of tables on the server.
> So PQftablecol() is actually trying to tell you the number of the
> table column where a particular "field" in the results came from.
> This is sort of a subtle distinction, though, and the fact that
> "field" is being abbreviated to "f" in some but not all cases doesn't
> make it any more clear. PQftablecol() is really supposed to mean
> "field-table-column" - i.e. look up the table column for this field.
> But the name is definitely less than totally self-documenting.
FYI, many of these function names date back to Berkeley. Libpq is
called 'libpq' because of the original use of the QUEL query language,
i.e. lib Post-QUEL. We have a proud backward-compatibility history with
this library.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
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-docs@postgresql.org
Cc: bruce@momjian.us, robertmhaas@gmail.com, dmitigr@gmail.com
Subject: Re: Terms.
In-Reply-To: <201009201529.o8KFTLQ18950@momjian.us>
* 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