4.92 ms (24.96%)
|
1 |
SELECT quote_ident(n.nspname) AS schema_name,
quote_ident(c.relname) AS table_name,
quote_ident(a.attname) AS field,
t.typname AS type,
format_type(a.atttypid, a.atttypmod) AS complete_type,
bt.typname AS domain_type,
format_type(bt.oid, t.typtypmod) AS domain_complete_type,
a.attnotnull AS isnotnull,
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) AS "default",
dsc.description AS comment,
CASE
WHEN coll.collprovider = 'c'
THEN coll.collcollate
WHEN coll.collprovider = 'd'
THEN NULL
ELSE coll.collname
END AS collation
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 = ANY(current_schemas(false)) AND c.relname = ? AND n.nspname NOT IN ('pg_catalog', 'information_schema', 'pg_toast')
AND c.relkind IN ('r', 'p')
AND a.attnum > 0
AND dep.refobjid IS NULL
AND p.oid IS NULL
ORDER BY n.nspname,
c.relname,
a.attnum
Parameters: [
"doctrine_migration_versions"
]
SELECT quote_ident(n.nspname) AS schema_name,
quote_ident(c.relname) AS table_name,
quote_ident(a.attname) AS field,
t.typname AS type,
format_type(a.atttypid, a.atttypmod) AS complete_type,
bt.typname AS domain_type,
format_type(bt.oid, t.typtypmod) AS domain_complete_type,
a.attnotnull AS isnotnull,
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) AS "default",
dsc.description AS comment,
CASE
WHEN coll.collprovider = 'c'
THEN coll.collcollate
WHEN coll.collprovider = 'd'
THEN NULL
ELSE coll.collname
END AS collation
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 = ANY(current_schemas(false)) AND c.relname = 'doctrine_migration_versions' AND n.nspname NOT IN ('pg_catalog', 'information_schema', 'pg_toast')
AND c.relkind IN ('r', 'p')
AND a.attnum > 0
AND dep.refobjid IS NULL
AND p.oid IS NULL
ORDER BY n.nspname,
c.relname,
a.attnum;
|
4.11 ms (20.87%)
|
2 |
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)
Parameters: [
"feature-d020588-auto-reindex"
]
SELECT quote_ident(table_name) AS table_name,
table_schema AS schema_name
FROM information_schema.tables
WHERE table_catalog = 'feature-d020588-auto-reindex'
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.22 ms (16.33%)
|
7 |
SELECT CURRENT_DATABASE()
SELECT CURRENT_DATABASE();
|
2.01 ms (10.19%)
|
1 |
SELECT
quote_ident(n.nspname) AS schema_name,
quote_ident(c.relname) AS table_name,
quote_ident(ic.relname) AS relname,
i.indisunique,
i.indisprimary,
i.indkey,
i.indrelid,
pg_get_expr(indpred, indrelid) AS "where",
quote_ident(attname) AS 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 = ANY(current_schemas(false)) AND c.relname = ? AND n.nspname NOT IN ('pg_catalog', 'information_schema', 'pg_toast')
ORDER BY 1, 2, keys.ord;
Parameters: [
"doctrine_migration_versions"
]
SELECT
quote_ident(n.nspname) AS schema_name,
quote_ident(c.relname) AS table_name,
quote_ident(ic.relname) AS relname,
i.indisunique,
i.indisprimary,
i.indkey,
i.indrelid,
pg_get_expr(indpred, indrelid) AS "where",
quote_ident(attname) AS 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 = ANY(current_schemas(false)) AND c.relname = 'doctrine_migration_versions' AND n.nspname NOT IN ('pg_catalog', 'information_schema', 'pg_toast')
ORDER BY 1, 2, keys.ord;;
|
1.72 ms (8.74%)
|
1 |
SELECT t0.id AS id_1, t0.imes_id AS imes_id_2, t0.name AS name_3, t0.surname AS surname_4, t0.username AS username_5, t0.email AS email_6, t0.active AS active_7, t0.imes_token AS imes_token_8, t0.imes_refresh_token AS imes_refresh_token_9, t0.imes_token_expires_timestamp AS imes_token_expires_timestamp_10, t0.preferred_pickup_time AS preferred_pickup_time_11, t0.christmas_mode AS christmas_mode_12, t0.fun_mode AS fun_mode_13, t0.lunch_notification AS lunch_notification_14, t0.login_link AS login_link_15, t0.ms_uid AS ms_uid_16, t0.preferred_company_id AS preferred_company_id_17 FROM imes_user t0 WHERE t0.id = ?
SELECT t0.id AS id_1, t0.imes_id AS imes_id_2, t0.name AS name_3, t0.surname AS surname_4, t0.username AS username_5, t0.email AS email_6, t0.active AS active_7, t0.imes_token AS imes_token_8, t0.imes_refresh_token AS imes_refresh_token_9, t0.imes_token_expires_timestamp AS imes_token_expires_timestamp_10, t0.preferred_pickup_time AS preferred_pickup_time_11, t0.christmas_mode AS christmas_mode_12, t0.fun_mode AS fun_mode_13, t0.lunch_notification AS lunch_notification_14, t0.login_link AS login_link_15, t0.ms_uid AS ms_uid_16, t0.preferred_company_id AS preferred_company_id_17 FROM imes_user t0 WHERE t0.id = 373;
|
1.13 ms (5.71%)
|
1 |
SELECT
quote_ident(tn.nspname) AS schema_name,
quote_ident(tc.relname) AS table_name,
quote_ident(r.conname) as conname,
pg_get_constraintdef(r.oid, true) as condef,
r.condeferrable,
r.condeferred
FROM pg_constraint r
JOIN pg_class AS tc ON tc.oid = r.conrelid
JOIN pg_namespace tn ON tn.oid = tc.relnamespace
WHERE r.conrelid IN
(
SELECT c.oid
FROM pg_class c
JOIN pg_namespace n
ON n.oid = c.relnamespace
WHERE n.nspname = ANY(current_schemas(false)) AND c.relname = ? AND n.nspname NOT IN ('pg_catalog', 'information_schema', 'pg_toast'))
AND r.contype = 'f'
ORDER BY 1, 2
Parameters: [
"doctrine_migration_versions"
]
SELECT
quote_ident(tn.nspname) AS schema_name,
quote_ident(tc.relname) AS table_name,
quote_ident(r.conname) as conname,
pg_get_constraintdef(r.oid, true) as condef,
r.condeferrable,
r.condeferred
FROM pg_constraint r
JOIN pg_class AS tc ON tc.oid = r.conrelid
JOIN pg_namespace tn ON tn.oid = tc.relnamespace
WHERE r.conrelid IN
(
SELECT c.oid
FROM pg_class c
JOIN pg_namespace n
ON n.oid = c.relnamespace
WHERE n.nspname = ANY(current_schemas(false)) AND c.relname = 'doctrine_migration_versions' AND n.nspname NOT IN ('pg_catalog', 'information_schema', 'pg_toast'))
AND r.contype = 'f'
ORDER BY 1, 2;
|
1.00 ms (5.06%)
|
1 |
SELECT t0.id AS id_1, t0.name AS name_2 FROM ldap_role t0 INNER JOIN imes_user_ldap_role ON t0.id = imes_user_ldap_role.ldap_role_id WHERE imes_user_ldap_role.imes_user_id = ?
SELECT t0.id AS id_1, t0.name AS name_2 FROM ldap_role t0 INNER JOIN imes_user_ldap_role ON t0.id = imes_user_ldap_role.ldap_role_id WHERE imes_user_ldap_role.imes_user_id = 373;
|
0.70 ms (3.56%)
|
1 |
SELECT quote_ident(n.nspname) AS schema_name,
quote_ident(c.relname) AS table_name,
CASE c.relpersistence WHEN 'u' THEN true ELSE false END as unlogged,
obj_description(c.oid, 'pg_class') AS comment
FROM pg_class c
INNER JOIN pg_namespace n
ON n.oid = c.relnamespace
WHERE
c.relkind = 'r'
AND n.nspname = ANY(current_schemas(false)) AND c.relname = ? AND n.nspname NOT IN ('pg_catalog', 'information_schema', 'pg_toast')
Parameters: [
"doctrine_migration_versions"
]
SELECT quote_ident(n.nspname) AS schema_name,
quote_ident(c.relname) AS table_name,
CASE c.relpersistence WHEN 'u' THEN true ELSE false END as unlogged,
obj_description(c.oid, 'pg_class') AS comment
FROM pg_class c
INNER JOIN pg_namespace n
ON n.oid = c.relnamespace
WHERE
c.relkind = 'r'
AND n.nspname = ANY(current_schemas(false)) AND c.relname = 'doctrine_migration_versions' AND n.nspname NOT IN ('pg_catalog', 'information_schema', 'pg_toast');
|
0.53 ms (2.69%)
|
1 |
SELECT * FROM doctrine_migration_versions
SELECT * FROM doctrine_migration_versions;
|
0.37 ms (1.87%)
|
1 |
SELECT current_schema()
SELECT current_schema();
|