From: | hubert depesz lubaczewski <depesz(at)depesz(dot)com> |
---|---|
To: | "rafael(dot)burischipfer" <RAFAEL(dot)BURISCHIPFERUSA(at)GMAIL(dot)COM> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Doubts PostgreSQL |
Date: | 2015-10-08 17:32:06 |
Message-ID: | 20151008173206.GA30897@depesz.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-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/
From | Date | Subject | |
---|---|---|---|
Next Message | Jorge Torralba | 2015-10-08 17:49:42 | Re: Doubts PostgreSQL |
Previous Message | John Scalia | 2015-10-08 15:43:09 | Re: a new standby server promotes itself to primary without cause |