| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера