Re: Reducing power consumption on idle servers
Magnus Hagander <magnus@hagander.net>
From: Magnus Hagander <magnus@hagander.net>
To: Simon Riggs <simon.riggs@enterprisedb.com>
Cc: Andres Freund <andres@anarazel.de>, Thomas Munro <thomas.munro@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2022-02-26T17:14:56Z
Lists: pgsql-hackers
On Mon, Feb 21, 2022 at 5:11 PM Simon Riggs <simon.riggs@enterprisedb.com> wrote: > > On Sat, 19 Feb 2022 at 17:03, Andres Freund <andres@anarazel.de> wrote: > > > > Hi, > > > > On 2022-02-19 14:10:39 +0000, Simon Riggs wrote: > > IMO we should instead consider either deprecating file based promotion, or > > adding an optional dependency on filesystem monitoring APIs (i.e. inotify etc) > > that avoid the need to poll for file creation. Came here to suggest exactly that :) > Deprecating explicit file-based promotion is possible and simple, so > that is the approach in the latest version of the patch. Is there any actual use-case for this other than backwards compatibility? The alternative has certainly been around for some time now, so if we don't know a specific use-case for the file-based one it's definitely time to deprecate it properly. -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/
Commits
-
Remove promote_trigger_file.
- cd4329d9393f 16.0 landed
-
Add pg_promote function
- 10074651e335 12.0 cited
-
pg_ctl promote
- 4695da5ae97b 9.1.0 cited