Select for insert possible?

Поиск
Список
Период
Сортировка
От Lincoln Yeoh
Тема Select for insert possible?
Дата
Msg-id 3.0.5.32.20010325015216.00fecd30@192.228.128.13
обсуждение исходный текст
Ответы Re: Select for insert possible?
Список pgsql-general
Hi,

Is it technically possible for there to be a "select for insert"? e.g.
other select for inserts with the same effective where clause will block
even if no rows are there yet.

Or should select .. for update actually work that way? I think it's
probably too difficult to implement it tho.

What cases would it be useful for select ... for update to _not_ block
other select ... for updates when no rows exist yet?

Are there RDBMSes with a command to atomically update if stuff already
exists, and insert if it doesn't?

Would anyone else find this useful?

Cheerio,
Link.


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

Предыдущее
От: "Christian Marschalek"
Дата:
Сообщение: Prefered programs and utils?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Select for insert possible?