Re: Patch to return last tid

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Patch to return last tid
Дата
Msg-id 29725.1032111232@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Patch to return last tid  ("Arturo Josè Montes Sinning" <mitosys@colomsat.net.co>)
Список pgsql-patches
"Arturo =?ISO-8859-1?Q?Jos=E8?= Montes Sinning" <mitosys@colomsat.net.co> writes:
> I am talking about select <select-list> from <table> where oid=<oid>
> When the table has thousands records this query is executed by Postgres
> as sequential scan.

Create an index on OID, if you want to use it to find rows quickly...

> The other problems come from insert. We are paying
> an extra cost when insert a row because oid sequence computation.

I've never seen any evidence that generating an OID is a significant
part of the time needed to do an INSERT (and yes, I've done profiling
of such things).

            regards, tom lane

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

Предыдущее
От: "Arturo Josè Montes Sinning"
Дата:
Сообщение: Re: Patch to return last tid
Следующее
От: Neil Conway
Дата:
Сообщение: CREATE DOMAIN doc fix