|
7 | 7 | -- When debugging in 'psql', uncomment the lines below to be able to run the
|
8 | 8 | -- query with arguments set.
|
9 | 9 |
|
10 |
| --- DEALLOCATE ALL; -- Or use 'DEALLOCATE configuration' between reloads |
11 |
| --- PREPARE configuration(varchar[], varchar[], varchar[], jsonb, varchar[]) AS |
| 10 | +DEALLOCATE ALL; -- Or use 'DEALLOCATE configuration' between reloads |
| 11 | +PREPARE configuration(varchar[], varchar[], varchar[], jsonb, varchar[], varchar[]) AS |
12 | 12 |
|
13 | 13 | WITH
|
14 | 14 | -- The overall structure of this query is a CTE (i.e. 'WITH .. SELECT')
|
|
229 | 229 | exclusively_composite_type_ids AS
|
230 | 230 | (
|
231 | 231 | SELECT relation_id FROM composite_types
|
| 232 | + WHERE |
| 233 | + NOT (type_name = ANY ($6)) |
232 | 234 | EXCEPT
|
233 | 235 | SELECT relation_id FROM relations
|
234 | 236 | )
|
@@ -1172,10 +1174,10 @@ WITH
|
1172 | 1174 | c.constraint_type = 'f' -- For foreign-key constraints
|
1173 | 1175 | )
|
1174 | 1176 | SELECT
|
1175 |
| - coalesce(tables.result, '{}'::jsonb) AS "Tables", |
1176 |
| - coalesce(aggregate_functions.result, '{}'::jsonb) AS "AggregateFunctions", |
1177 |
| - coalesce(comparison_functions.result, '{}'::jsonb) AS "ComparisonFunctions", |
1178 |
| - coalesce(composite_types_json.result, '{}'::jsonb) AS "CompositeTypes" |
| 1177 | + jsonb_pretty(coalesce(tables.result, '{}'::jsonb)) AS "Tables", |
| 1178 | + jsonb_pretty(coalesce(aggregate_functions.result, '{}'::jsonb)) AS "AggregateFunctions", |
| 1179 | + jsonb_pretty(coalesce(comparison_functions.result, '{}'::jsonb)) AS "ComparisonFunctions", |
| 1180 | + jsonb_pretty(coalesce(composite_types_json.result, '{}'::jsonb)) AS "CompositeTypes" |
1179 | 1181 | FROM
|
1180 | 1182 | (
|
1181 | 1183 | SELECT
|
@@ -1490,26 +1492,27 @@ FROM
|
1490 | 1492 |
|
1491 | 1493 | -- Uncomment the following lines to just run the configuration query with reasonable default arguments
|
1492 | 1494 | --
|
1493 |
| --- EXECUTE configuration( |
1494 |
| --- '{"information_schema", "tiger", "pg_catalog", "topology"}'::varchar[], |
1495 |
| --- '{"public"}'::varchar[], |
1496 |
| --- '{"public", "pg_catalog", "tiger"}'::varchar[], |
1497 |
| --- '[ |
1498 |
| --- {"operatorName": "=", "exposedName": "_eq", "operatorKind": "equal"}, |
1499 |
| --- {"operatorName": "!=", "exposedName": "_neq", "operatorKind": "custom"}, |
1500 |
| --- {"operatorName": "<>", "exposedName": "_neq", "operatorKind": "custom"}, |
1501 |
| --- {"operatorName": "<=", "exposedName": "_lte", "operatorKind": "custom"}, |
1502 |
| --- {"operatorName": ">", "exposedName": "_gt", "operatorKind": "custom"}, |
1503 |
| --- {"operatorName": ">=", "exposedName": "_gte", "operatorKind": "custom"}, |
1504 |
| --- {"operatorName": "<", "exposedName": "_lt", "operatorKind": "custom"}, |
1505 |
| --- {"operatorName": "~~", "exposedName": "_like", "operatorKind": "custom"}, |
1506 |
| --- {"operatorName": "!~~", "exposedName": "_nlike", "operatorKind": "custom"}, |
1507 |
| --- {"operatorName": "~~*", "exposedName": "_ilike", "operatorKind": "custom"}, |
1508 |
| --- {"operatorName": "!~~*", "exposedName": "_nilike", "operatorKind": "custom"}, |
1509 |
| --- {"operatorName": "~", "exposedName": "_regex", "operatorKind": "custom"}, |
1510 |
| --- {"operatorName": "!~", "exposedName": "_nregex", "operatorKind": "custom"}, |
1511 |
| --- {"operatorName": "~*", "exposedName": "_iregex", "operatorKind": "custom"}, |
1512 |
| --- {"operatorName": "!~*", "exposedName": "_niregex", "operatorKind": "custom"} |
1513 |
| --- ]'::jsonb, |
1514 |
| --- '{box_above,box_below}'::varchar[] |
1515 |
| --- ); |
| 1495 | +EXECUTE configuration( |
| 1496 | + '{"information_schema", "tiger", "pg_catalog", "topology"}'::varchar[], |
| 1497 | + '{"public"}'::varchar[], |
| 1498 | + '{"public", "pg_catalog", "tiger"}'::varchar[], |
| 1499 | + '[ |
| 1500 | + {"operatorName": "=", "exposedName": "_eq", "operatorKind": "equal"}, |
| 1501 | + {"operatorName": "!=", "exposedName": "_neq", "operatorKind": "custom"}, |
| 1502 | + {"operatorName": "<>", "exposedName": "_neq", "operatorKind": "custom"}, |
| 1503 | + {"operatorName": "<=", "exposedName": "_lte", "operatorKind": "custom"}, |
| 1504 | + {"operatorName": ">", "exposedName": "_gt", "operatorKind": "custom"}, |
| 1505 | + {"operatorName": ">=", "exposedName": "_gte", "operatorKind": "custom"}, |
| 1506 | + {"operatorName": "<", "exposedName": "_lt", "operatorKind": "custom"}, |
| 1507 | + {"operatorName": "~~", "exposedName": "_like", "operatorKind": "custom"}, |
| 1508 | + {"operatorName": "!~~", "exposedName": "_nlike", "operatorKind": "custom"}, |
| 1509 | + {"operatorName": "~~*", "exposedName": "_ilike", "operatorKind": "custom"}, |
| 1510 | + {"operatorName": "!~~*", "exposedName": "_nilike", "operatorKind": "custom"}, |
| 1511 | + {"operatorName": "~", "exposedName": "_regex", "operatorKind": "custom"}, |
| 1512 | + {"operatorName": "!~", "exposedName": "_nregex", "operatorKind": "custom"}, |
| 1513 | + {"operatorName": "~*", "exposedName": "_iregex", "operatorKind": "custom"}, |
| 1514 | + {"operatorName": "!~*", "exposedName": "_niregex", "operatorKind": "custom"} |
| 1515 | + ]'::jsonb, |
| 1516 | + '{box_above,box_below}'::varchar[], |
| 1517 | + '{woop,replication_slot_info,split_copy_info,split_shard_info,geometry_dump,valid_detail,norm_addy}'::varchar[] |
| 1518 | +); |
0 commit comments