Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 0B1A69F9F46 for ; Sat, 16 Dec 2006 07:56:04 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 33405-03 for ; Sat, 16 Dec 2006 07:55:50 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from smtp-vbr2.xs4all.nl (smtp-vbr2.xs4all.nl [194.109.24.22]) by postgresql.org (Postfix) with ESMTP id 570309F9F08 for ; Sat, 16 Dec 2006 07:55:54 -0400 (AST) Received: from webmail.xs4all.nl (dovemail6.xs4all.nl [194.109.26.8]) by smtp-vbr2.xs4all.nl (8.13.8/8.13.8) with ESMTP id kBGBtoHR001509; Sat, 16 Dec 2006 12:55:51 +0100 (CET) (envelope-from jtv@xs4all.nl) Received: from 125.24.243.222 (SquirrelMail authenticated user jtv) by webmail.xs4all.nl with HTTP; Sat, 16 Dec 2006 18:55:51 +0700 (ICT) Message-ID: <6147.125.24.243.222.1166270151.squirrel@webmail.xs4all.nl> In-Reply-To: <1166269673.5923.17.camel@localhost.localdomain> References: <1166225144.12609.2.camel@localhost.localdomain> <20058.125.24.243.222.1166249768.squirrel@webmail.xs4all.nl> <1166267606.5923.11.camel@localhost.localdomain> <9856.125.24.243.222.1166268615.squirrel@webmail.xs4all.nl> <1166269673.5923.17.camel@localhost.localdomain> Date: Sat, 16 Dec 2006 18:55:51 +0700 (ICT) Subject: Re: Embedding postgresql in my application From: "Jeroen T. Vermeulen" To: "Murray Cumming" Cc: "pgsql-interfaces" User-Agent: SquirrelMail/1.4.8 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/15 X-Sequence-Number: 6349 On Sat, December 16, 2006 18:47, Murray Cumming wrote: > Well, I want multiple users, from multiple networked computers to be > able to use the database simultaneously. TCP/IP seems the logical way to > do this. Ah--I had not understood that you wanted to access the database remotely. But in that case, in what sense would the database be "embedded" in your application!? >> Yes. Except for the createuser: if user X owns these directories and >> postgres is started under user identity X, then X is automatically >> (well, >> by default) the superuser for that database. No need to create it. > > Are we talking about a Linux user or Postgres user as "user X"? I > thought they were separate lists of users. They are. But if you're on a local connection, as I had been assuming, you can couple them which is often both safe and convenient. >> There's the configuration files, of course, in /etc/postgresql*. You'll >> have to look up the necessary options to replace those with local >> versions. > > Is there no way to put the configuration file in the directory too? Certainly. You'll just have to look up the necessary options to replace the default configuration files with your local versions. Jeroen