From: hubert depesz lubaczewski <depesz@depesz.com>
To: rafael.burischipfer <RAFAEL.BURISCHIPFERUSA@GMAIL.COM>
Cc: pgsql-admin@postgresql.org
Subject: Re: Doubts PostgreSQL
Date: Thu, 8 Oct 2015 19:32:06 +0200
Message-ID: <20151008173206.GA30897@depesz.com> (raw)
In-Reply-To: <1444314932009-5869292.post@n5.nabble.com>
References: <1444314932009-5869292.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
On Thu, Oct 08, 2015 at 07:35:32AM -0700, rafael.burischipfer wrote:
> 1) Can I archive different databases in different directory path?
> Example:
> I want archive the database production 1 in '/mnt/production_1/archive' and
> production 2 in '/mnt/production_2/archive'
if you mean:
a. archive as in "archive_command"
b. database as in one of databases in given pg installation
then no, you can't. wal is shared across all databases in cluster
(installation).
> 2) I want change the WAL location, I don't want the WAL files stay in
> default location, I want for example in '/PGDATA/WAL', and Can I create
> different WALs to different databases?
You can move wal, and then symlink pg_xlog directory, sure.
You can't have wal for different databases go to different directories.
> 3) Can I improve the WAL size? the default is 16,384 KB, I want for example
> 51,200 KB it is possible?
First - why do you think it would be improvement?
> 4) In my instance I have three databases (Production 1, Production 2 and
> Production 3), and I have a role named UserProd with password 'test123', I
> want the Production 1 database the password be 'passwd123' in Production 2
> database be '123-passwd' and in Production 3 database be 'test123', it is
> possible?
User accounts are shared across all databases in cluster. Why not use
separate accounts, then?
Also, while I'm asking - why do you want to move wal to another
location?
Best regards,
depesz
--
The best thing about modern society is how easy it is to avoid contact with it.
http://depesz.com/
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: depesz@depesz.com, RAFAEL.BURISCHIPFERUSA@GMAIL.COM
Subject: Re: Doubts PostgreSQL
In-Reply-To: <20151008173206.GA30897@depesz.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox