Re: Identify huge pages accessibility using madvise

2024-09-25 Thread Gabriele Bartolini
s or commentaries about the proposal? > > [1]: > https://www.postgresql.org/message-id/flat/HE1PR0701MB256920EEAA3B2A9C06249F339E110%40HE1PR0701MB2569.eurprd07.prod.outlook.com > [2]: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4ca9b3859dac14bbef0c27d00667bb5b10917adb > -- Gabriele Bartolini VP, Chief Architect, Kubernetes enterprisedb.com

Re: RFC: Additional Directory for Extensions

2024-08-27 Thread Gabriele Bartolini
to install multiple versions of an extension, we could mount them in different directories, with the version included in the folder name—for example, `pgvector-0.7.4` instead of just `pgvector`. However, I'm a bit rusty with the extensions framework, so I'll need to check if this approach is

Re: RFC: Additional Directory for Extensions

2024-08-22 Thread Gabriele Bartolini
gt; GUCs. So you could say: > > SET extension_search_path = /mnt/extensions/pg16/* > > To mean effectively the same as you're describing above. > That'd be great. +1. -- Gabriele Bartolini Vice President, Cloud Native at EDB enterprisedb.com

Re: RFC: Additional Directory for Extensions

2024-08-22 Thread Gabriele Bartolini
n path contianing matching extension control file > * use this directory as the extension directory for all subsequent SQL > script loading and running actions > It could work, but it requires some prototyping and exploration. I'm willing to participate and use CloudNativePG as a test bed. Cheers, Gabriele -- Gabriele Bartolini Vice President, Cloud Native at EDB enterprisedb.com

Re: RFC: Additional Directory for Extensions

2024-08-21 Thread Gabriele Bartolini
gres/pull/3/files > > Rebased and restored PGC_SUSET in the attached v5 patch, plus noted the > required privileges in the docs. > > Best, > > David > > > > -- Gabriele Bartolini Vice President, Cloud Native at EDB enterprisedb.com

Re: Possibility to disable `ALTER SYSTEM`

2024-02-07 Thread Gabriele Bartolini
Hi Joel, On Wed, 7 Feb 2024 at 10:00, Joel Jacobson wrote: > On Fri, Sep 8, 2023, at 16:17, Gabriele Bartolini wrote: > > ``` > > postgres=# ALTER SYSTEM SET wal_level TO minimal; > > ERROR: could not open file "postgresql.auto.conf": Permission denie

Re: Possibility to disable `ALTER SYSTEM`

2024-02-07 Thread Gabriele Bartolini
experiments enabling the change in the configuration file, but wasn't sure in which `config_group` to place the 'enable_alter_system` GUC, based on the src/include/utils/guc_tables.h. Any thoughts/hints? Cheers, Gabriele -- Gabriele Bartolini Vice President, Cloud Native at EDB enterprisedb.com

Re: Possibility to disable `ALTER SYSTEM`

2024-01-31 Thread Gabriele Bartolini
. Of course you can bypass it using > COPY PROGRAM etc., but then you *know* that you are *bypassing* > something. If you just see ALTER SYSTEM, you'll think, "that is > obviously the appropriate tool", and there is no generally accepted way > to communic

Re: Possibility to disable `ALTER SYSTEM`

2024-01-30 Thread Gabriele Bartolini
Hi, I am sending an updated patch, and submitting this to the next commit fest, as I still believe this could be very useful. Thanks, Gabriele On Thu, 7 Sept 2023 at 21:51, Gabriele Bartolini < gabriele.bartol...@enterprisedb.com> wrote: > Hi everyone, > > I would like to propo

Re: Extend pgbench partitioning to pgbench_history

2024-01-30 Thread Gabriele Bartolini
story is not). > > I don't have a strong opinion about this, but I also can't think of a > reason to want to create partitions for pgbench_accounts but leave out > pgbench_history. > > > From ba8f507b126a9c5bd22dd40bb8ce0c1f0c43ac59 Mon Sep 17 00:00:00 2001 > > Fr

Re: Extend pgbench partitioning to pgbench_history

2023-11-30 Thread Gabriele Bartolini
Please discard the previous patch and use this one (it had a leftover comment from an initial attempt to limit this to hash case). Thanks, Gabriele On Thu, 30 Nov 2023 at 11:29, Gabriele Bartolini < gabriele.bartol...@enterprisedb.com> wrote: > Hi there, > > While benchmarkin

Extend pgbench partitioning to pgbench_history

2023-11-30 Thread Gabriele Bartolini
you think. Thanks, Gabriele -- Gabriele Bartolini Vice President, Cloud Native at EDB enterprisedb.com 0001-Include-pgbench_history-in-partitioning-method-for-p.patch Description: Binary data

Re: Possibility to disable `ALTER SYSTEM`

2023-09-15 Thread Gabriele Bartolini
ke to see your extension, I would still like to understand why Postgres itself shouldn't solve this basic requirement coming from the configuration management driven/Kubernetes space. It shouldn't be a big deal to have such an option, either as a startup one or a GUC, should it? Thanks, Gabr

Re: Possibility to disable `ALTER SYSTEM`

2023-09-11 Thread Gabriele Bartolini
o see some merit in > making it so that you can't actually change the config that's loaded at > system start from inside the data directory or as the PG superuser, > which my proposal above would support- just configure in postgresql.conf > to not include any of the alter-sys

Re: Possibility to disable `ALTER SYSTEM`

2023-09-11 Thread Gabriele Bartolini
nt the role of an operator. An operator, at that point, will have the possibility to configure this knob in conjunction with others. A possibility that Postgres is not currently giving. Postgres itself should be able to give this possibility, as these environments demand Postgres to address their emerging needs. Thank you, Gabriele -- Gabriele Bartolini Vice President, Cloud Native at EDB enterprisedb.com

Re: Possibility to disable `ALTER SYSTEM`

2023-09-08 Thread Gabriele Bartolini
ilability we are forced to go beyond the single instance and think in terms of primary with one or more standbys or at least continuous backup in place). Thanks, Gabriele -- Gabriele Bartolini Vice President, Cloud Native at EDB enterprisedb.com

Re: Possibility to disable `ALTER SYSTEM`

2023-09-08 Thread Gabriele Bartolini
-o "-c enable_alter_system=off" The setting can be verified with: psql -c 'SHOW enable_alter_system' enable_alter_system - off (1 row) And then: psql -c 'ALTER SYSTEM SET max_connections TO 10' ERROR: permission denied to run ALTER SYSTEM Thanks

Re: Possibility to disable `ALTER SYSTEM`

2023-09-08 Thread Gabriele Bartolini
d not open file "postgresql.auto.conf": Permission denied ``` IMO we should clearly state that `ALTER SYSTEM` is deliberately disabled in a system, rather than indirectly hinting it through an inaccessible file. Not sure if I am clearly highlighting the fine difference here. Thanks, Gabriele --

Re: Possibility to disable `ALTER SYSTEM`

2023-09-08 Thread Gabriele Bartolini
Hi Tom, On Thu, 7 Sept 2023 at 22:27, Tom Lane wrote: > Gabriele Bartolini writes: > > I would like to propose a patch that allows administrators to disable > > `ALTER SYSTEM` via either a runt-time option to pass to the Postgres > server > > process at startup (e.g.

Re: Possibility to disable `ALTER SYSTEM`

2023-09-07 Thread Gabriele Bartolini
dly features! :) That sounds like a good idea to me. Thanks, Gabriele -- Gabriele Bartolini Vice President, Cloud Native at EDB enterprisedb.com

Possibility to disable `ALTER SYSTEM`

2023-09-07 Thread Gabriele Bartolini
if there’s room for it. Thanks for your attention and … looking forward to your feedback! Ciao, Gabriele -- Gabriele Bartolini Vice President, Cloud Native at EDB enterprisedb.com