[GENERAL] Using ctid in delete statement

Поиск
Список
Период
Сортировка
От pinker
Тема [GENERAL] Using ctid in delete statement
Дата
Msg-id 1487172753193-5944434.post@n3.nabble.com
обсуждение исходный текст
Ответы Re: [GENERAL] Using ctid in delete statement  (Vick Khera <vivek@khera.org>)
Список pgsql-general
Hi,
is it safe to use ctid in following query? :

DELETE FROM table_name WHERE ctid = any ( array ( select tn.ctid from
table_name tn JOIN items i on tn.itemid=i.itemid WHERE tn.clock < extract (
epoch FROM now() - i.history * interval '10 day')::int + 6 limit 100));

Could I be sure that ctid will not change during the execution or will not
do any harm to other transactions?


regards



--
View this message in context: http://postgresql.nabble.com/Using-ctid-in-delete-statement-tp5944434.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: [GENERAL] Missing feature - how to differentiate insert/update inplpgsql function?
Следующее
От: Leonardo M. Ramé
Дата:
Сообщение: [GENERAL] Foreign Data Wrapper for filesystem