You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
18
18
-#2815, Build static executable with GSSAPI support - @wolfgangwalther
19
19
-#3205, Fix wrong subquery error returning a status of 400 Bad Request - @steve-chavez
20
20
21
+
### Changed
22
+
-#2052, Dropped support for PostgreSQL 9.6 - @wolfgangwalther
23
+
21
24
### Deprecated
22
25
23
26
-`Prefer: params=single-object` is deprecated. Use [a function with a single unnamed JSON parameter](https://postgrest.org/en/latest/references/api/stored_procedures.html#s-proc-single-json) instead. - @steve-chavez
or has_table_privilege(c.oid, 'SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER')
497
496
or has_any_column_privilege(c.oid, 'SELECT, INSERT, UPDATE, REFERENCES')
498
-
) |] <>
499
-
relIsPartition <>
500
-
"ORDER BY table_schema, table_name"
501
-
relIsPartition =if pgVer >= pgVersion100 then" AND not c.relispartition "elsemempty
497
+
)
498
+
AND not c.relispartition
499
+
ORDER BY table_schema, table_name|]
502
500
503
501
{-
504
502
Adds M2O and O2O relationships for views to tables, tables to views, and views to views. The example below is taken from the test fixtures, but the views names/colnames were modified.
@@ -810,11 +808,10 @@ tablesSqlQuery pgVer =
810
808
LEFT JOIN tbl_pk_cols tpks ON n.nspname = tpks.table_schema AND c.relname = tpks.table_name
811
809
LEFT JOIN columns_agg cols_agg ON n.nspname = cols_agg.table_schema AND c.relname = cols_agg.table_name
812
810
WHERE c.relkind IN ('v','r','m','f','p')
813
-
AND n.nspname NOT IN ('pg_catalog', 'information_schema') |] <>
814
-
relIsPartition <>
815
-
"ORDER BY table_schema, table_name"
811
+
AND n.nspname NOT IN ('pg_catalog', 'information_schema')
812
+
AND not c.relispartition
813
+
ORDER BY table_schema, table_name|]
816
814
where
817
-
relIsPartition =if pgVer >= pgVersion100 then" AND not c.relispartition "elsemempty
818
815
columnDefault -- typbasetype and typdefaultbin handles `CREATE DOMAIN .. DEFAULT val`, attidentity/attgenerated handles generated columns, pg_get_expr gets the default of a column
819
816
| pgVer >= pgVersion120 = [q|
820
817
CASE
@@ -823,17 +820,12 @@ tablesSqlQuery pgVer =
823
820
WHEN a.attgenerated = 's' THEN null
824
821
ELSE pg_get_expr(ad.adbin, ad.adrelid)::text
825
822
END|]
826
-
|pgVer >= pgVersion100= [q|
823
+
|otherwise= [q|
827
824
CASE
828
825
WHEN t.typbasetype != 0 THEN pg_get_expr(t.typdefaultbin, 0)
829
826
WHEN a.attidentity = 'd' THEN format('nextval(%s)', quote_literal(seqsch.nspname || '.' || seqclass.relname))
830
827
ELSE pg_get_expr(ad.adbin, ad.adrelid)::text
831
828
END|]
832
-
|otherwise= [q|
833
-
CASE
834
-
WHEN t.typbasetype != 0 THEN pg_get_expr(t.typdefaultbin, 0)
835
-
ELSE pg_get_expr(ad.adbin, ad.adrelid)::text
836
-
END|]
837
829
838
830
--| Gets many-to-one relationships and one-to-one(O2O) relationships, which are a refinement of the many-to-one's
0 commit comments