From: Tom Lane <tgl@sss.pgh.pa.us>
To: Terry Lee Tucker <terry@esc1.com>
Cc: Interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: Advice Needed
Date: Wed, 26 Feb 2003 11:26:42 -0500
Message-ID: <189.1046276802@sss.pgh.pa.us> (raw)
In-Reply-To: <3E5CE4FF.1060500@esc1.com>
References: <3E5CE4FF.1060500@esc1.com>
Terry Lee Tucker <terry@esc1.com> writes:
> [snip]
> 1. Does this model make sense based on your work with libpq-fe and
> postgres?
Yes, it looks pretty standard. But you need to think harder about
exactly what you intend to do when two people try to edit the same
record concurrently. ("Use a cursor" does not answer that question
at all.) That's a bit off-topic for pgsql-interfaces though; I'd
recommend discussing it in pgsql-sql.
> 2. We are only using a binary cursor for the edit operation. Does
> this make sense?
Not really. I'd not bother with binary cursors at all. You're just
opening yourself up to portability problems, and you're not saving
anything meaningful when you're fetching just one row.
regards, tom lane
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: tgl@sss.pgh.pa.us, terry@esc1.com
Subject: Re: Advice Needed
In-Reply-To: <189.1046276802@sss.pgh.pa.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