| 1 |
0.66 ms |
SELECT CURRENT_DATABASE()
SELECT CURRENT_DATABASE();
|
| 2 |
23.39 ms |
SELECT quote_ident(table_name) AS table_name,
table_schema AS schema_name
FROM information_schema.tables
WHERE table_catalog = ?
AND table_schema NOT LIKE 'pg\_%'
AND table_schema != 'information_schema'
AND table_name != 'geometry_columns'
AND table_name != 'spatial_ref_sys'
AND table_type = 'BASE TABLE'
ORDER BY
quote_ident(table_name)
SELECT quote_ident(table_name) AS table_name,
table_schema AS schema_name
FROM information_schema.tables
WHERE table_catalog = 'dvz'
AND table_schema NOT LIKE 'pg\_%'
AND table_schema != 'information_schema'
AND table_name != 'geometry_columns'
AND table_name != 'spatial_ref_sys'
AND table_type = 'BASE TABLE'
ORDER BY
quote_ident(table_name);
|
| 3 |
0.59 ms |
SELECT current_schema()
SELECT current_schema();
|
| 4 |
0.53 ms |
SELECT CURRENT_DATABASE()
SELECT CURRENT_DATABASE();
|
| 5 |
4.65 ms |
SELECT quote_ident(table_name) AS table_name,
table_schema AS schema_name
FROM information_schema.tables
WHERE table_catalog = ?
AND table_schema NOT LIKE 'pg\_%'
AND table_schema != 'information_schema'
AND table_name != 'geometry_columns'
AND table_name != 'spatial_ref_sys'
AND table_type = 'BASE TABLE'
ORDER BY
quote_ident(table_name)
SELECT quote_ident(table_name) AS table_name,
table_schema AS schema_name
FROM information_schema.tables
WHERE table_catalog = 'dvz'
AND table_schema NOT LIKE 'pg\_%'
AND table_schema != 'information_schema'
AND table_name != 'geometry_columns'
AND table_name != 'spatial_ref_sys'
AND table_type = 'BASE TABLE'
ORDER BY
quote_ident(table_name);
|
| 6 |
28.30 ms |
SELECT n.nspname,
c.relname,
a.attname,
t.typname,
format_type(a.atttypid, a.atttypmod),
bt.typname,
format_type(bt.oid, t.typtypmod),
a.attnotnull,
a.attidentity,
( SELECT
CASE
WHEN a.attgenerated = 's' THEN NULL
ELSE pg_get_expr(adbin, adrelid)
END
FROM pg_attrdef
WHERE c.oid = pg_attrdef.adrelid
AND pg_attrdef.adnum=a.attnum),
dsc.description,
CASE
WHEN coll.collprovider = 'c'
THEN coll.collcollate
WHEN coll.collprovider = 'd'
THEN NULL
ELSE coll.collname
END
FROM pg_attribute a
JOIN pg_class c
ON c.oid = a.attrelid
JOIN pg_namespace n
ON n.oid = c.relnamespace
JOIN pg_type t
ON t.oid = a.atttypid
LEFT JOIN pg_type bt
ON t.typtype = 'd'
AND bt.oid = t.typbasetype
LEFT JOIN pg_collation coll
ON coll.oid = a.attcollation
LEFT JOIN pg_depend dep
ON dep.objid = c.oid
AND dep.deptype = 'e'
AND dep.classid = (SELECT oid FROM pg_class WHERE relname = 'pg_class')
LEFT JOIN pg_description dsc
ON dsc.objoid = c.oid AND dsc.objsubid = a.attnum
LEFT JOIN pg_inherits i
ON i.inhrelid = c.oid
LEFT JOIN pg_class p
ON i.inhparent = p.oid
AND p.relkind = 'p'
WHERE n.nspname = ? AND c.relname = ? AND n.nspname NOT LIKE 'pg\_%' AND n.nspname != 'information_schema' AND c.relkind IN ('r', 'p') AND c.relname NOT IN ('geometry_columns', 'spatial_ref_sys')
AND a.attnum > 0
AND dep.refobjid IS NULL
AND p.oid IS NULL
ORDER BY n.nspname,
c.relname,
a.attnum
Parameters: [
"public"
"doctrine_migration_versions"
]
SELECT n.nspname,
c.relname,
a.attname,
t.typname,
format_type(a.atttypid, a.atttypmod),
bt.typname,
format_type(bt.oid, t.typtypmod),
a.attnotnull,
a.attidentity,
( SELECT
CASE
WHEN a.attgenerated = 's' THEN NULL
ELSE pg_get_expr(adbin, adrelid)
END
FROM pg_attrdef
WHERE c.oid = pg_attrdef.adrelid
AND pg_attrdef.adnum=a.attnum),
dsc.description,
CASE
WHEN coll.collprovider = 'c'
THEN coll.collcollate
WHEN coll.collprovider = 'd'
THEN NULL
ELSE coll.collname
END
FROM pg_attribute a
JOIN pg_class c
ON c.oid = a.attrelid
JOIN pg_namespace n
ON n.oid = c.relnamespace
JOIN pg_type t
ON t.oid = a.atttypid
LEFT JOIN pg_type bt
ON t.typtype = 'd'
AND bt.oid = t.typbasetype
LEFT JOIN pg_collation coll
ON coll.oid = a.attcollation
LEFT JOIN pg_depend dep
ON dep.objid = c.oid
AND dep.deptype = 'e'
AND dep.classid = (SELECT oid FROM pg_class WHERE relname = 'pg_class')
LEFT JOIN pg_description dsc
ON dsc.objoid = c.oid AND dsc.objsubid = a.attnum
LEFT JOIN pg_inherits i
ON i.inhrelid = c.oid
LEFT JOIN pg_class p
ON i.inhparent = p.oid
AND p.relkind = 'p'
WHERE n.nspname = 'public' AND c.relname = 'doctrine_migration_versions' AND n.nspname NOT LIKE 'pg\_%' AND n.nspname != 'information_schema' AND c.relkind IN ('r', 'p') AND c.relname NOT IN ('geometry_columns', 'spatial_ref_sys')
AND a.attnum > 0
AND dep.refobjid IS NULL
AND p.oid IS NULL
ORDER BY n.nspname,
c.relname,
a.attnum;
|
| 7 |
1.18 ms |
SELECT n.nspname,
c.relname,
CASE c.relpersistence WHEN 'u' THEN true ELSE false END,
obj_description(c.oid, 'pg_class')
FROM pg_class c
INNER JOIN pg_namespace n
ON n.oid = c.relnamespace
WHERE n.nspname = ? AND c.relname = ? AND n.nspname NOT LIKE 'pg\_%' AND n.nspname != 'information_schema' AND c.relkind IN ('r', 'p') AND c.relname NOT IN ('geometry_columns', 'spatial_ref_sys')
Parameters: [
"public"
"doctrine_migration_versions"
]
SELECT n.nspname,
c.relname,
CASE c.relpersistence WHEN 'u' THEN true ELSE false END,
obj_description(c.oid, 'pg_class')
FROM pg_class c
INNER JOIN pg_namespace n
ON n.oid = c.relnamespace
WHERE n.nspname = 'public' AND c.relname = 'doctrine_migration_versions' AND n.nspname NOT LIKE 'pg\_%' AND n.nspname != 'information_schema' AND c.relkind IN ('r', 'p') AND c.relname NOT IN ('geometry_columns', 'spatial_ref_sys');
|
| 8 |
11.87 ms |
SELECT n.nspname,
c.relname,
ct.conname,
a.attname
FROM pg_namespace n
INNER JOIN pg_class c
ON c.relnamespace = n.oid
INNER JOIN pg_constraint ct
ON ct.conrelid = c.oid
INNER JOIN pg_index i
ON i.indrelid = c.oid
AND i.indexrelid = ct.conindid
INNER JOIN LATERAL unnest(i.indkey) WITH ORDINALITY AS keys(attnum, ord)
ON true
INNER JOIN
pg_attribute a
ON a.attrelid = c.oid
AND a.attnum = keys.attnum
WHERE n.nspname = ? AND c.relname = ? AND n.nspname NOT LIKE 'pg\_%' AND n.nspname != 'information_schema' AND c.relkind IN ('r', 'p') AND c.relname NOT IN ('geometry_columns', 'spatial_ref_sys')
AND ct.contype = 'p'
ORDER BY n.nspname,
c.relname,
ct.conname,
keys.ord
Parameters: [
"public"
"doctrine_migration_versions"
]
SELECT n.nspname,
c.relname,
ct.conname,
a.attname
FROM pg_namespace n
INNER JOIN pg_class c
ON c.relnamespace = n.oid
INNER JOIN pg_constraint ct
ON ct.conrelid = c.oid
INNER JOIN pg_index i
ON i.indrelid = c.oid
AND i.indexrelid = ct.conindid
INNER JOIN LATERAL unnest(i.indkey) WITH ORDINALITY AS keys(attnum, ord)
ON true
INNER JOIN
pg_attribute a
ON a.attrelid = c.oid
AND a.attnum = keys.attnum
WHERE n.nspname = 'public' AND c.relname = 'doctrine_migration_versions' AND n.nspname NOT LIKE 'pg\_%' AND n.nspname != 'information_schema' AND c.relkind IN ('r', 'p') AND c.relname NOT IN ('geometry_columns', 'spatial_ref_sys')
AND ct.contype = 'p'
ORDER BY n.nspname,
c.relname,
ct.conname,
keys.ord;
|
| 9 |
3.60 ms |
SELECT n.nspname,
c.relname,
ic.relname,
i.indisunique,
pg_get_expr(indpred, indrelid),
attname
FROM pg_index i
JOIN pg_class AS c ON c.oid = i.indrelid
JOIN pg_namespace n ON n.oid = c.relnamespace
JOIN pg_class AS ic ON ic.oid = i.indexrelid
JOIN LATERAL unnest(i.indkey) WITH ORDINALITY AS keys(attnum, ord)
ON TRUE
JOIN pg_attribute a
ON a.attrelid = c.oid
AND a.attnum = keys.attnum
WHERE n.nspname = ? AND c.relname = ? AND n.nspname NOT LIKE 'pg\_%' AND n.nspname != 'information_schema' AND c.relkind IN ('r', 'p') AND c.relname NOT IN ('geometry_columns', 'spatial_ref_sys')
AND i.indisprimary = false
ORDER BY n.nspname,
c.relname,
ic.relname,
keys.ord
Parameters: [
"public"
"doctrine_migration_versions"
]
SELECT n.nspname,
c.relname,
ic.relname,
i.indisunique,
pg_get_expr(indpred, indrelid),
attname
FROM pg_index i
JOIN pg_class AS c ON c.oid = i.indrelid
JOIN pg_namespace n ON n.oid = c.relnamespace
JOIN pg_class AS ic ON ic.oid = i.indexrelid
JOIN LATERAL unnest(i.indkey) WITH ORDINALITY AS keys(attnum, ord)
ON TRUE
JOIN pg_attribute a
ON a.attrelid = c.oid
AND a.attnum = keys.attnum
WHERE n.nspname = 'public' AND c.relname = 'doctrine_migration_versions' AND n.nspname NOT LIKE 'pg\_%' AND n.nspname != 'information_schema' AND c.relkind IN ('r', 'p') AND c.relname NOT IN ('geometry_columns', 'spatial_ref_sys')
AND i.indisprimary = false
ORDER BY n.nspname,
c.relname,
ic.relname,
keys.ord;
|
| 10 |
6.82 ms |
SELECT pkn.nspname,
pkc.relname,
r.conname,
fkn.nspname,
fkc.relname,
r.confupdtype,
r.confdeltype,
r.condeferrable,
r.condeferred,
pka.attname,
fka.attname
FROM pg_constraint r
JOIN pg_class fkc
ON fkc.oid = r.confrelid
JOIN pg_namespace fkn
ON fkn.oid = fkc.relnamespace
JOIN unnest(r.confkey) WITH ORDINALITY AS fk_attnum(attnum, ord)
ON TRUE
JOIN pg_attribute fka
ON fka.attrelid = fkc.oid
AND fka.attnum = fk_attnum.attnum
JOIN pg_class pkc
ON pkc.oid = r.conrelid
JOIN pg_namespace pkn
ON pkn.oid = pkc.relnamespace
JOIN unnest(r.conkey) WITH ORDINALITY AS pk_attnum(attnum, ord)
ON pk_attnum.ord = fk_attnum.ord
JOIN pg_attribute pka
ON pka.attrelid = pkc.oid
AND pka.attnum = pk_attnum.attnum
WHERE pkn.nspname = ? AND pkc.relname = ? AND pkn.nspname NOT LIKE 'pg\_%' AND pkn.nspname != 'information_schema' AND pkc.relkind IN ('r', 'p') AND pkc.relname NOT IN ('geometry_columns', 'spatial_ref_sys')
AND r.contype = 'f'
ORDER BY pkn.nspname,
pkc.relname,
r.conname
Parameters: [
"public"
"doctrine_migration_versions"
]
SELECT pkn.nspname,
pkc.relname,
r.conname,
fkn.nspname,
fkc.relname,
r.confupdtype,
r.confdeltype,
r.condeferrable,
r.condeferred,
pka.attname,
fka.attname
FROM pg_constraint r
JOIN pg_class fkc
ON fkc.oid = r.confrelid
JOIN pg_namespace fkn
ON fkn.oid = fkc.relnamespace
JOIN unnest(r.confkey) WITH ORDINALITY AS fk_attnum(attnum, ord)
ON TRUE
JOIN pg_attribute fka
ON fka.attrelid = fkc.oid
AND fka.attnum = fk_attnum.attnum
JOIN pg_class pkc
ON pkc.oid = r.conrelid
JOIN pg_namespace pkn
ON pkn.oid = pkc.relnamespace
JOIN unnest(r.conkey) WITH ORDINALITY AS pk_attnum(attnum, ord)
ON pk_attnum.ord = fk_attnum.ord
JOIN pg_attribute pka
ON pka.attrelid = pkc.oid
AND pka.attnum = pk_attnum.attnum
WHERE pkn.nspname = 'public' AND pkc.relname = 'doctrine_migration_versions' AND pkn.nspname NOT LIKE 'pg\_%' AND pkn.nspname != 'information_schema' AND pkc.relkind IN ('r', 'p') AND pkc.relname NOT IN ('geometry_columns', 'spatial_ref_sys')
AND r.contype = 'f'
ORDER BY pkn.nspname,
pkc.relname,
r.conname;
|
| 11 |
0.94 ms |
SELECT * FROM doctrine_migration_versions
SELECT * FROM doctrine_migration_versions;
|
| 12 |
8.88 ms |
SELECT CURRENT_DATABASE()
SELECT CURRENT_DATABASE();
|