mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2025-01-06 01:23:15 +02:00
сделал refactoring
This commit is contained in:
parent
5259bc50cd
commit
56530b9e8f
@ -136,14 +136,13 @@ SELECT
|
|||||||
as is_primary_key
|
as is_primary_key
|
||||||
|
|
||||||
FROM
|
FROM
|
||||||
pg_catalog.pg_statio_all_tables as st
|
|
||||||
|
|
||||||
right join
|
|
||||||
information_schema.columns c
|
information_schema.columns c
|
||||||
on
|
|
||||||
|
|
||||||
c.table_schema = st.schemaname
|
left join
|
||||||
and c.table_name = st.relname
|
pg_catalog.pg_statio_all_tables as st
|
||||||
|
on
|
||||||
|
st.schemaname = c.table_schema
|
||||||
|
and st.relname = c.table_name
|
||||||
|
|
||||||
left join
|
left join
|
||||||
pg_catalog.pg_description pgd
|
pg_catalog.pg_description pgd
|
||||||
|
Loading…
Reference in New Issue
Block a user