Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goYB8-00050d-GK for pgsql-performance@arkaria.postgresql.org; Tue, 29 Jan 2019 18:32:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1goYB7-0002DC-7b for pgsql-performance@arkaria.postgresql.org; Tue, 29 Jan 2019 18:32:09 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1goYB6-0002CA-LB for pgsql-performance@lists.postgresql.org; Tue, 29 Jan 2019 18:32:09 +0000 Received: from resqmta-ch2-09v.sys.comcast.net ([2001:558:fe21:29:69:252:207:41]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goYB3-0003F2-2q for pgsql-performance@lists.postgresql.org; Tue, 29 Jan 2019 18:32:07 +0000 Received: from resomta-ch2-06v.sys.comcast.net ([69.252.207.102]) by resqmta-ch2-09v.sys.comcast.net with ESMTP id oTqkgq3Rk0UjaoYAxglTRX; Tue, 29 Jan 2019 18:31:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1548786719; bh=5Gd4eMq6Sd6SBWU7ZjAR8mHChGUASDzW59dPBWtGsyQ=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=dXnyz0dgoM0AWI730ZVlxbbbyaDcaqKfgzivNWvPsof8An/pYdcUfqWjJTTRWqxox PwdtfRvcWsAaO5NC03xNajlQqOOsxyrwtQLjW0HFYCBElYxQQKa8TyVYja70pZyLaN 6ZvkbQ1frRfpCFXrefw8zuJwOYCPpYMTUePvdajIdpO3FpC9uEp3cQbt2NK6WOGoq8 Fu1GJHHuKDgCmP7sQk1qU7QaK9ibely2NnAoJzfgLp2ZIcrZ9W7ePY54hL6PEOcl4/ YivyjANUU3xiMle0darqOxs8XtFBuNgEM3nINxh5b1TYu7TwpmoDEiRyd+PgWbw5gm zPNqN39Ku6cPg== Received: from jsievers.comcast.net ([12.187.116.132]) by resomta-ch2-06v.sys.comcast.net with ESMTPA id oYApg9rLxpWxCoYApg0Lw7; Tue, 29 Jan 2019 18:31:57 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedtledrjedvgdduudegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuvehomhgtrghsthdqtfgvshhipdfqfgfvpdfpqffurfetoffkrfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpeflvghrrhihucfuihgvvhgvrhhsuceoghhsihgvvhgvrhhsudelsegtohhmtggrshhtrdhnvghtqeenucfkphepuddvrddukeejrdduudeirddufedvnecurfgrrhgrmhephhgvlhhopehjshhivghvvghrshdrtghomhgtrghsthdrnhgvthdpihhnvghtpeduvddrudekjedrudduiedrudefvddpmhgrihhlfhhrohhmpehgshhivghvvghrshduleestghomhgtrghsthdrnhgvthdprhgtphhtthhopegsohgsjhholhhlihhffhgvsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqphgvrhhfohhrmhgrnhgtvgeslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Xfinity-VMeta: sc=-100;st=legit Received: from jsievers.enova.com (localhost [127.0.0.1]) by jsievers.comcast.net (Postfix) with ESMTP id 4A89E260056; Tue, 29 Jan 2019 12:31:51 -0600 (CST) From: Jerry Sievers To: Bob Jolliffe Cc: pgsql-performance@lists.postgresql.org Subject: Re: Interpreting shared_buffers setting References: Date: Tue, 29 Jan 2019 12:31:51 -0600 In-Reply-To: (Bob Jolliffe's message of "Tue, 29 Jan 2019 12:32:55 +0000") Message-ID: <87k1in9uy0.fsf@jsievers.enova.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Bob Jolliffe writes: > Excuse me if this is a silly question. I am trying to fiddle with > shared_buffers setting on postgresql 10.6 on ubuntu 18.04 server. > > I have this at bottom of my config file: > shared_buffers = 1GB > > Yet when I check the setting from pg_setting I see something quite different: > > postgres=# SELECT name, setting FROM pg_settings where name = 'shared_buffers'; > name | setting > ----------------+--------- > shared_buffers | 131072 Why not use the show command which is good about output in human terms... psql (11.1 (Ubuntu 11.1-1.pgdg16.04+1)) Type "help" for help. meta_a:postgres# select name, setting from pg_settings where name = 'shared_buffers'); ERROR: syntax error at or near ")" LINE 1: ...me, setting from pg_settings where name = 'shared_buffers'); ^ meta_a:postgres# > > Is this a question of units? It looks like 128M. Note when I change > the setting to 2GB in conf file I see 262144 from pg_setting. I am > now unsure what the actual shared_buffers allocation is. I cant see > anything in the docs which tells me how to interpret the integer. > > Any clarification welcome. > > Regards > Bob > > -- Jerry Sievers Postgres DBA/Development Consulting e: postgres.consulting@comcast.net