Re: Time complexity of statements

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Time complexity of statements
Дата
Msg-id 15084.1139930983@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Time complexity of statements  (Sebastjan Trepca <trepca@gmail.com>)
Список pgsql-general
Sebastjan Trepca <trepca@gmail.com> writes:
> As I understood from books and docs every statement in Postgres takes
> O(1) because of it's versioning system, right?

Finding an existing row is not O(1), so this is not the case for
anything but INSERT.  You also have to consider index update costs,
foreign key checking costs if applicable, etc etc.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Dropping a database that does not exist
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Time complexity of statements