BEGIN/END question ...

Поиск
Список
Период
Сортировка
От The Hermit Hacker
Тема BEGIN/END question ...
Дата
Msg-id Pine.BSF.4.21.0001211358420.23487-100000@thelab.hub.org
обсуждение исходный текст
Список pgsql-general
In v6.5.3, if I do:

BEGIN;
SELECT * FROM <table> WHERE <datefield> < now();
DELETE FROM <table> WHERE <datafield> < now();
END;

and, between the SELECT/DELETE, someone inserts data into the table that
matches the WHERE clause, will the DELETE pick that up also?

I know its an odd question, but if I have any faint understanding of MVCC,
it won't, because when I issue the BEGIN/SELECT, it will "timestamp" my
transaction and only affect those tuples that were in existence when I
started ...

... but I want to confirm :)

Marc G. Fournier                   ICQ#7615664               IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org


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

Предыдущее
От: "Culberson, Philip"
Дата:
Сообщение: RE: [GENERAL] Too many open files...
Следующее
От: "Ed Bras"
Дата:
Сообщение: RE: stat failed on /usr/lib/pgsql/plpgsql.so; no file or directory