Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZkF4n-0004j1-8T for pgsql-admin@arkaria.postgresql.org; Thu, 08 Oct 2015 17:33:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZkF4m-0006Ub-76 for pgsql-admin@arkaria.postgresql.org; Thu, 08 Oct 2015 17:33:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZkF37-0004be-CO for pgsql-admin@postgresql.org; Thu, 08 Oct 2015 17:32:13 +0000 Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZkF33-0002qm-R8 for pgsql-admin@postgresql.org; Thu, 08 Oct 2015 17:32:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20140207; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date; bh=yEIznjxtFUcNs9WI/3ktHpqASZf8ve6XC0WC6jsPTj8=; b=Lix2a0JAtZGQRYif3sZpbcqfcC uekc1NgzzQD/zFtyAmrfVk2PKSx1X9jpwdbkLHmjwy21+QdoPfQnbg6T218EqM3vgjxQt3uZwGpIP C1NC/tqI0YYSDP4DpFvo7VLQC; Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by depesz.com with esmtpa (Exim 4.86) (envelope-from ) id 1ZkF30-0000J6-Uu; Thu, 08 Oct 2015 19:32:07 +0200 Date: Thu, 8 Oct 2015 19:32:06 +0200 From: hubert depesz lubaczewski To: "rafael.burischipfer" Cc: pgsql-admin@postgresql.org Subject: Re: Doubts PostgreSQL Message-ID: <20151008173206.GA30897@depesz.com> Reply-To: depesz@depesz.com References: <1444314932009-5869292.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1444314932009-5869292.post@n5.nabble.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org 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