From: Erwin Fritz <efritz@gljpc.com>
To: Johannes Truschnigg <johannes@truschnigg.info>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: RE: temp_file_limit parameter ignored?
Date: Mon, 20 Aug 2018 20:06:18 +0000
Message-ID: <9E6E27BCA0E8EE478089F158D73AF936A91F3630@Exch10-Mailbox.corp.gljpc.com> (raw)
In-Reply-To: <20180820152350.h47sxqxknhnq6wpg@vault.lan>
References: <9E6E27BCA0E8EE478089F158D73AF936A91EB443@Exch10-Mailbox.corp.gljpc.com>
<20180820131535.ljrnxgph62ypus2z@vault.lan>
<9E6E27BCA0E8EE478089F158D73AF936A91ED957@Exch10-Mailbox.corp.gljpc.com>
<20180820152350.h47sxqxknhnq6wpg@vault.lan>
I ran "select pg_reload_conf()" and it returned "t".
Originally, I had edited postgresql.conf, changing the temp_file_limit parameter. After that I did "pg_ctl stop" followed by "pg_ctl start". No errors were reported, but yet the 4GB limit is still reported by "show temp_file_limit".
I then ran this:
psql <db> postgres
alter system set temp_file_limit to -1;
show temp_file_limit;
And it STILL shows 4GB! However, as expected, the postgresql.auto.conf file has the -1 value.
Weird!
-----------------------------
This message is intended only for the recipient(s) to which it is addressed and may contain information that is privileged and confidential. If you have received this message in error, please notify the sender immediately and delete all copies.
-----------------------------
________________________________________
From: Johannes Truschnigg [johannes@truschnigg.info]
Sent: August 20, 2018 09:23
To: Erwin Fritz
Cc: pgsql-admin@postgresql.org
Subject: Re: temp_file_limit parameter ignored?
On Mon, Aug 20, 2018 at 03:09:33PM +0000, Erwin Fritz wrote:
> Hmm. I did that, and the sourcefile and sourceline values are blank. I then
> ran "show config_file" and the result has the correct location of the file.
Hmm. That's strange, because if you properly edited and saved that file,
postgres should at the very least notice the changed reboot value for the
setting. Are you sure you succesfully restarted/reloaded postgresql after your
change?
SELECT pg_reload_conf();
as a superuser role ("postgres" is fine) should do. Make sure to check the
postgresql logs afterwards, since it will contain information on changed
settings and syntax errors/problems (if any)!
Since you're on pg9.5, you could also use the ALTER SYSTEM command to commit
configuration changes, that will have postgres take care of applying and
persisting the changes you make. You should read
https://www.postgresql.org/docs/9.5/static/sql-altersystem.html for more info
on that particular topic/feature.
Hth.
--
with best regards:
- Johannes Truschnigg ( johannes@truschnigg.info )
www: https://johannes.truschnigg.info/
phone: +43 650 2 133337
xmpp: johannes@truschnigg.info
Please do not bother me with HTML-email or attachments. Thank you.
Attachments:Erwin Fritz.vcf (text/x-vcard, 359B) download
BEGIN:VCARD
VERSION:2.1
N:Fritz;Erwin;;;
ORG:GLJ Petroleum Consultants
TITLE:IS Operations Manager
EMAIL;PREF;internet:efritz@gljpc.com
TEL;VOICE;WORK:+1 (403) 266-9570
TEL;FAX;WORK:+1 (403) 262-1855
ADR;WORK;PREF;ENCODING=QUOTED-PRINTABLE:;;Suite 4100, 400 Third Ave SW;Calgary;Alberta;T2P 4H2;Canada
FN:Erwin Fritz
REV:20180820T200620Z
END:VCARD
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: efritz@gljpc.com, johannes@truschnigg.info
Subject: Re: temp_file_limit parameter ignored?
In-Reply-To: <9E6E27BCA0E8EE478089F158D73AF936A91F3630@Exch10-Mailbox.corp.gljpc.com>
References: <9E6E27BCA0E8EE478089F158D73AF936A91EB443@Exch10-Mailbox.corp.gljpc.com> <20180820131535.ljrnxgph62ypus2z@vault.lan> <9E6E27BCA0E8EE478089F158D73AF936A91ED957@Exch10-Mailbox.corp.gljpc.com> <20180820152350.h47sxqxknhnq6wpg@vault.lan> <9E6E27BCA0E8EE478089F158D73AF936A91F3630@Exch10-Mailbox.corp.gljpc.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