[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
Список 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 по дате отправления: