Re: Delete/update with limit

Поиск
Список
Период
Сортировка
От Csaba Nagy
Тема Re: Delete/update with limit
Дата
Msg-id 1185291163.8615.27.camel@coppola.muc.ecircle.de
обсуждение исходный текст
Ответ на Re: Delete/update with limit  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Ответы Re: Delete/update with limit  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-general
> Unfortunately the stuff that makes a ctid=<value> nice doesn't seem to be
> used when you're doing an in. It's possible that a function that does
> something like
>  for rec in select ctid from my_table limit 10 loop
>   delete from my_table where ctid=rec.ctid;
>  end loop
> might do okay, but I haven't tried it.

OK, I think this will work. It would be nice though to have the 'ctid
in' trick work just as well as 'ctid = ' ...

Thanks,
Csaba.



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

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: varchar does not work too well with IS NOT NULL partial indexes.
Следующее
От: Steve Wampler
Дата:
Сообщение: Re: CentOS 4 RPMs for 8.2.4?