some ideas from users
От | Pavel Stehule |
---|---|
Тема | some ideas from users |
Дата | |
Msg-id | CAFj8pRDKBLyfRD1L5GVxiP8xnFs0BR2JFzc-r3Vswth5c7yuWA@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: some ideas from users
Re: some ideas from users |
Список | pgsql-hackers |
Hi
I did a week training and here are some ideas from people, who are starting with Postgres.CREATE OR REPLACE FUNCTION public.settings(OUT name text, OUT setting text, OUT description text)
RETURNS SETOF record
LANGUAGE plpgsql
AS $function$
BEGIN
RETURN QUERY EXECUTE 'SHOW ALL'
RETURN;
END;
$function$
postgres=# select * from settings() where name like '%checkpoint%';
name | setting | description
------------------------------+---------+------------------------------------------------------------------------------------------
checkpoint_completion_target | 0.5 | Time spent flushing dirty buffers during checkpoint, as fraction of checkpoint interval.
checkpoint_segments | 3 | Sets the maximum distance in log segments between automatic WAL checkpoints.
checkpoint_timeout | 5min | Sets the maximum time between automatic WAL checkpoints.
checkpoint_warning | 30s | Enables warnings if checkpoint segments are filled more frequently than this.
log_checkpoints | off | Logs each checkpoint.
(5 rows)
В списке pgsql-hackers по дате отправления: