InitPostgres and flatfiles question

Поиск
Список
Период
Сортировка
От Markus Schiltknecht
Тема InitPostgres and flatfiles question
Дата
Msg-id 459BD09F.30602@bluegap.ch
обсуждение исходный текст
Ответы Re: InitPostgres and flatfiles question  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

I've just run into a race condition with creating a database and 
connecting to it immediately afterwards. I'm getting a "database %s not 
found" error just after the first flatfiles check in InitPostgres().

What that FindMyDatabase() there does, besides checking if the database 
exists, is getting the database and tablespace OIDs, right? Why does the 
postmaster not pass those instead of the database name? What would be 
the dangers of doing so? (Besides code different from standalone backend)?

Regards

Markus



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

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: Rare corruption of pg_class index
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Rare corruption of pg_class index