Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id B54C61335CB7 for ; Mon, 20 Sep 2010 12:29:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 56214-10 for ; Mon, 20 Sep 2010 15:29:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 9C4C21335BA8 for ; Mon, 20 Sep 2010 12:29:21 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o8KFTLQ18950; Mon, 20 Sep 2010 11:29:21 -0400 (EDT) From: Bruce Momjian Message-Id: <201009201529.o8KFTLQ18950@momjian.us> Subject: Re: Terms. In-Reply-To: To: Robert Haas Date: Mon, 20 Sep 2010 11:29:21 -0400 (EDT) CC: Dmitriy Igrishin , pgsql-docs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201009/82 X-Sequence-Number: 6072 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 http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +