forked from HariSekhon/SQL-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postgres_settings_compatibility.sql
45 lines (42 loc) · 1.09 KB
/
postgres_settings_compatibility.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
--
-- Author: Hari Sekhon
-- Date: 2020-08-06 18:07:25 +0100 (Thu, 06 Aug 2020)
--
-- vim:ts=2:sts=2:sw=2:et:filetype=sql
--
-- https://github.com/harisekhon/sql
--
-- License: see accompanying Hari Sekhon LICENSE file
--
-- If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
--
-- https://www.linkedin.com/in/harisekhon
--
-- Show PostgreSQL version and platform compatibility settings
--
-- eg. backslash_quote, escape_string_warning, transform_null_equals
--
-- Requires PostgreSQL 9.5+
--
-- Tested on PostgreSQL 9.5, 9.6, 10.x 11.x, 12.x, 13.0
-- https://www.postgresql.org/docs/12/runtime-config-compatible.html
SELECT
name,
setting,
-- category,
vartype,
short_desc,
-- enumvals,
source,
min_val,
max_val,
boot_val,
reset_val,
-- not available on PostgreSQL < 9.5
pending_restart
FROM
pg_settings
WHERE
-- Version and Platform Compatibility / Previous PostgreSQL Versions
-- Version and Platform Compatibility / Other Platforms and Clients
category ILIKE '%Compatibility%';