Re: Advice Needed

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Advice Needed
Дата
Msg-id 189.1046276802@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Advice Needed  (Terry Lee Tucker <terry@esc1.com>)
Список pgsql-interfaces
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


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Terry Lee Tucker
Дата:
Сообщение: Advice Needed
Следующее
От: Wei Weng
Дата:
Сообщение: Re: debug a mess