May we use libpgtcl pg_execute? / Was: pg_select...

From: ljb <lbayuk(at)mindspring(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: May we use libpgtcl pg_execute? / Was: pg_select...
Date: 2002-03-03 02:13:52
Message-ID: a5s0t0$mnh$1@jupiter.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

andi(at)kretzer-berlin(dot)de wrote:
>...
> There seems to be no way to find out if there are just no matching rows
> ...

It's easier with pg_execute, since it returns the number of tuples. This
new command showed up around PostgreSQL 7.1, and it's still there at 7.2,
but still undocumented. It looks rather useful. Another thing it can do,
that you can't otherwise do with libpgtcl, is find out how many rows were
affected by insert, update, or delete. I can see pg_execute replacing
pg_select because it is more flexible, too.

Since it isn't listed in HISTORY or the documentation, I wonder if it is
considered "experimental", or might it be staying around, just waiting for
somebody to document it? I would like to know, because there is a bug in
the "-oid" code; I have a tiny patch for it if it is going to be supported.

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Jeroen T. Vermeulen 2002-03-03 15:35:40 libpqxx & lost connections
Previous Message John Oakes 2002-03-03 00:43:04 Re: jdbc