how to create multiple databases running in different dirs

From: "frank ernest" <doark(at)mail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: how to create multiple databases running in different dirs
Date: 2014-06-30 23:58:06
Message-ID: trinity-1cf01d9b-9f25-41ea-8532-717cab903487-1404172685739@3capp-mailcom-lxa09
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi, I&#39;m new to postgresql and sql in general. I desired to write a program in C that used an sql data base for IPC and because multiple copies of my program might run on the same machine I wanted a way to ensure that only one copy of each multithreaded program got one database but I&#39;m uncertain how to go about this. As the program might be run several different times and each time it should only get the data base from it&#39;s predisesor I can&#39;t use the pid as a unique data base name. I thought that I might start multiple pgsql instances but somehow that seems wrong. Any ideas?</div>

<div>&nbsp;</div>

<div>Thanks, David</div>

<div>&nbsp;</div></div></body></html>

Attachment Content-Type Size
unknown_filename text/html 772 bytes

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2014-07-01 00:04:44 Re: how to create multiple databases running in different dirs
Previous Message Tom Lane 2014-06-30 22:59:56 Re: Cannot query views with WHERE clause on renamed columns