how to create multiple databases running in different dirs

Поиск
Список
Период
Сортировка
От frank ernest
Тема how to create multiple databases running in different dirs
Дата
Msg-id trinity-1cf01d9b-9f25-41ea-8532-717cab903487-1404172685739@3capp-mailcom-lxa09
обсуждение исходный текст
Ответы Re: how to create multiple databases running in different dirs
Re: how to create multiple databases running in different dirs
Список pgsql-general
Hi, I'm new to postgresql and sql in general. I desired to write a program in C that used an sql data base for IPC
andbecause multiple copies of my program might run on the same machine I wanted a way to ensure that only one copy of
eachmultithreaded program got one database but I'm uncertain how to go about this. As the program might be run
severaldifferent times and each time it should only get the data base from it's predisesor I can't use the pid
asa unique data base name. I thought that I might start multiple pgsql instances but somehow that seems wrong. Any
ideas?

 

Thanks, David

 

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Cannot query views with WHERE clause on renamed columns
Следующее
От: Rob Sargent
Дата:
Сообщение: Re: how to create multiple databases running in different dirs