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