By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| version |
|---|
| PostgreSQL 14.10 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-20), 64-bit |
SELECT 1
CREATE SCHEMA
CREATE SCHEMA
CREATE FUNCTION
ERROR: column "query" specified more than once
ERROR: column "backend_type" specified more than once
CREATE VIEW
| ordinal_position | source_column | your_alias | is_equal | name_shifted_by |
|---|---|---|---|---|
| 1 | datid | datid | t | 0 |
| 2 | datname | datname | t | 0 |
| 3 | pid | pid | t | 0 |
| 4 | leader_pid | usesysid | f | 1 |
| 5 | usesysid | usename | f | 1 |
| 6 | usename | application_name | f | 1 |
| 7 | application_name | client_addr | f | 1 |
| 8 | client_addr | client_hostname | f | 1 |
| 9 | client_hostname | client_port | f | 1 |
| 10 | client_port | backend_start | f | 1 |
| 11 | backend_start | xact_start | f | 1 |
| 12 | xact_start | query_start | f | 1 |
| 13 | query_start | state_change | f | 1 |
| 14 | state_change | wait_event_type | f | 1 |
| 15 | wait_event_type | wait_event | f | 1 |
| 16 | wait_event | state | f | 1 |
| 17 | state | backend_xid | f | 1 |
| 18 | backend_xid | backend_xmin | f | 1 |
| 19 | backend_xmin | query | f | 2 |
| 20 | query_id | backend_type | f | 2 |
| 21 | query | query (2) | f | 0 |
| 22 | backend_type | backend_type (2) | f | 0 |
SELECT 22
CREATE VIEW
CREATE VIEW
CREATE VIEW
CREATE VIEW