Re: Max number of tables in a db?

Поиск
Список
Период
Сортировка
От Colin 't Hart
Тема Re: Max number of tables in a db?
Дата
Msg-id 9ljdus$2j3t$1@news.tht.net
обсуждение исходный текст
Ответ на Re: Max number of tables in a db?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
> A couple of further notes --- there are Unix filesystems that don't suck
> with large directories, but I'm not sure whether any of the ones in
> common use have smart directory handling.  The typical approach is that
> file opens, creates, deletes require a linear scan of the directory.

Linux (kernel) 2.2.x or later (including 2.4.x) have a directory cache
(I think hashed, but could also be btree) which means that subsequent
file opens are (very) fast, and very large directories are not a problem,
provided the cache doesn't age sufficiently to be discarded.


How does Postgres do its file handling? How many files can it have open
simultaneously?


Cheers,

Colin



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: assigning result of SELECT in TRIGGER
Следующее
От: "Chris Mulcahy"
Дата:
Сообщение: Postmaster not stopping