Skip site navigation (1) Skip section navigation (2)

Re: Two databases on the same server, looking for idea how to restrict access.

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: Condor <condor(at)stz-bg(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Two databases on the same server, looking for idea how to restrict access.
Date: 2012-06-07 17:07:55
Message-ID: 4FD0DFEB.70503@iol.ie (view raw or flat)
Thread:
Lists: pgsql-general
On 07/06/2012 15:39, Condor wrote:
> Hello,
> 
> I have two databases on postgresql in different servers, one main
> database and one secondary not much important,
> but the problem is they should use some tables both for reading and
> writing and the secondary postgresql should not
> have access to whole database on the main database. Im thinking to
> combine both databases on same server and split them
> with different schema also to make load balance and some kind of
> permissions to restrict secondary database to read whole
> database on the main database or some kind of shared tables (files). Any
> one have some ideas how I can do this ? Any ideas is welcome.

Your idea of two schemas in the one database is the way to go - you
cannot share tables between different databases.

Ray.


-- 
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie

In response to

Responses

pgsql-general by date

Next:From: Adrian KlaverDate: 2012-06-07 17:44:46
Subject: Re: Missing row after update
Previous:From: Tom LaneDate: 2012-06-07 16:14:30
Subject: Re: Memory Overcommit

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group