X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 506C19DC835 for ; Thu, 15 Dec 2005 18:00:57 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 85095-04 for ; Thu, 15 Dec 2005 18:00:58 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from flake.decibel.org (flake.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id B3A869DC820 for ; Thu, 15 Dec 2005 18:00:54 -0400 (AST) Received: by flake.decibel.org (Postfix, from userid 1001) id 06EC31528A; Thu, 15 Dec 2005 16:00:56 -0600 (CST) Date: Thu, 15 Dec 2005 16:00:56 -0600 From: "Jim C. Nasby" To: David Pratt Cc: pgsql-admin@postgresql.org Subject: Re: Protecting application table structures and data Message-ID: <20051215220056.GH40699@pervasive.com> References: <43A1D9BB.2030601@eastlink.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43A1D9BB.2030601@eastlink.ca> X-Operating-System: FreeBSD 4.11-RELEASE-p10 i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200512/158 X-Sequence-Number: 19878 On Thu, Dec 15, 2005 at 05:01:47PM -0400, David Pratt wrote: > Hi. I am creating a desktop app and am interested in using postgres. I > started this app with sqlite3 which is nice but not multi-threaded so I > have run into its limitations. > > I want to install postgres on the users machine as part of the set up > but want the application, if possible, to be the db admin for the > installed pg server. Is this possible? > > I am hoping the application can be admin and create the tables and give > the machine's user appropriate access without providing direct access to > admin functions. You can do this, but remember that anyone who has access to the account postgresql is running under is going to be able to do pretty much anything they want. And anyone with administrative access to the machine will be able to get access to that account. > Alternatively, is there a way to protect the data structures and data > through encryption to secure the structures and data in a way that > cannot be read by a human? Many thanks. No, there isn't. In fact, I think only Oracle has that capability, though I could be mistaken. -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461