question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generate ALTER SYSTEM commands

See original GitHub issue

Hi, thx for great tool.

After postgresql 9.4 you can use ALTER SYSTEM SET to change individual options. IMO it will be good that those statements are also generated. This way you can very easy change configuration.

So that you get something like this:

ALTER SYSTEM SET max_connections = '16';
ALTER SYSTEM SET shared_buffers = '4GB';
ALTER SYSTEM SET effective_cache_size = '12GB';
ALTER SYSTEM SET work_mem = '256MB';
ALTER SYSTEM SET maintenance_work_mem = '1GB';
ALTER SYSTEM SET min_wal_size = '1GB';
ALTER SYSTEM SET max_wal_size = '2GB';
ALTER SYSTEM SET checkpoint_completion_target = '0.7';
ALTER SYSTEM SET wal_buffers = '16MB';
ALTER SYSTEM SET default_statistics_target = '100';

br

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
le0pardcommented, May 17, 2022

@josuamarcelc let’s read for example shared_buffers setting from official doc

https://www.postgresql.org/docs/14/runtime-config-resource.html

This parameter can only be set at server start.

Same for max_worker_processes

This parameter can only be set at server start

And many other params.

So your proposal will not work.

1reaction
le0pardcommented, Nov 19, 2017

Released new version with “ALTER SYSTEM” commands

Read more comments on GitHub >

github_iconTop Results From Across the Web

ALTER SYSTEM
Use the ALTER SYSTEM statement to dynamically alter your Oracle Database instance. The settings stay in effect as long as the database is...
Read more >
Documentation: 15: ALTER SYSTEM - PostgreSQL
ALTER SYSTEM is used for changing server configuration parameters across the entire database cluster. It can be more convenient than the traditional method...
Read more >
ALTER SYSTEM - Apache Drill
Use the ALTER SYSTEM SET command to permanently set Drill query planning and execution options per cluster. Options set at the system level...
Read more >
Granting ALTER SYSTEM KILL SESSION to users
To do this, simply create a packaged procedure which kills sessions, and grant execute privileges on that. Again, I would not grant alter...
Read more >
alter system kill session - Oracle Base
The basic syntax is similar to the KILL SESSION command with the addition of the POST_TRANSACTION clause. The SID and SERIAL# values of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found