Laurence Isla and Steve Chavez
ebc26d0c09
fix: Using GET with certain Content-Type headers now correctly calls the no parameter function if it exists
...
Using GET with text/plain or application/octet-stream as Content-Type headers no longer returns 404 Not Found when a function with no parameters exists
2022-06-03 22:19:16 -05:00
Wolfgang Walther and Steve Chavez
7cc8502a64
fix: Remove aggregates, procedures and window functions from schema cache and OpenAPI output
...
Aggregates and Window functions can't be called as RPCs in a useful way.
Procedures are not supported right now, but might be added later.
Resolves #2101
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-06-03 22:19:16 -05:00
Wolfgang Walther and Steve Chavez
5a88161ff7
fix: Take PG version into account in --dump-schema
...
The PG version is only read by the Connection Worker, which is not used in the case dump-schema. Now, the pg version is read in the schema cache queries directly, avoiding this problem in all cases.
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-06-03 22:19:16 -05:00
Wolfgang Walther and Steve Chavez
2c001010df
fix: Remove trigger functions from schema cache and OpenAPI output
...
Trigger functions can't be called directly from SQL and can't be called
via the /rpc prefix either - it makes no sense to expose them in the
OpenAPI output. And we don't need to cache them in the schema cache
either.
Best practice would be to keep the trigger functions in a non-exposed
schema anyway.
2022-06-03 22:19:16 -05:00
Wolfgang Walther and Steve Chavez
2e334db31b
fix: Read database configuration properly when = is present in value
...
Resolves #2120
2022-06-03 22:19:16 -05:00
Wolfgang Walther and Steve Chavez
d1851a6966
refactor: Reformat db-config query
2022-06-03 22:19:16 -05:00
Wolfgang Walther and Steve Chavez
76fdf29f5c
refactor: Move each Wai Middleware to a separate file
2022-06-03 22:19:16 -05:00
Wolfgang Walther and Steve Chavez
747b0234ae
cov: Add coverage overlay for impossible case in corsPolicy
2022-06-03 22:19:16 -05:00
Wolfgang Walther and Steve Chavez
ce578ec1b8
refactor: simplify logger middleware
2022-06-03 22:19:16 -05:00
Wolfgang Walther and Steve Chavez
7272d8894c
cov: Remove unreachable static icon
2022-06-03 22:19:16 -05:00
Wolfgang Walther and Steve Chavez
9f09a6547d
cov: Improve jwt claims test-cases
2022-06-03 22:19:16 -05:00
Wolfgang Walther and Steve Chavez
130dcc4f66
fix: Fix wrong CORS header Authentication -> Authorization
...
Also refactors defaultCorsPolicy and corsPolicy and cleans up CORS tests
2022-06-03 22:19:16 -05:00
Wolfgang Walther and Steve Chavez
7db4a75146
fix: Make recursive view parsing work with XMLTABLE + DEFAULT
2022-06-03 22:19:16 -05:00
Steve Chavez
ef240ef05a
fix: is not working with upper/mixed case values ( #2081 )
2022-06-03 22:19:16 -05:00
Wolfgang Walther and Steve Chavez
9c7e6070f0
fix: Dump db-config option without quotes as it's a boolean
2022-06-03 22:19:16 -05:00
Wolfgang Walther and Steve Chavez
9b397878dc
refactor: Make asJsonSingleF "safe", by accessing only the first element of a json_agg result
2022-06-03 22:19:16 -05:00
Wolfgang Walther and Steve Chavez
eda59c241e
fix: Execute deferred constraint triggers when using Prefer: tx=rollback
...
Resolves #2020
2022-06-03 22:19:16 -05:00
Wolfgang Walther and Steve Chavez
4d64aae870
fix: Link to latest docs in pre-release openapi output
...
Resolves #2018
2022-06-03 22:19:16 -05:00
steve-chavez
132ecd8d74
Correct count query when doing inner joins
2021-11-26 10:39:19 -05:00
Wolfgang Walther and Wolfgang Walther
a65ac9b0f6
feat: drop support for pg 9.5
2021-11-24 19:42:53 +01:00
Laurence Isla and GitHub
62243852b6
feat: Improve error message for ambiguous embedding
...
- Adds a relevant hint that includes unambiguous embedding suggestions.
- Joins origin and target into one single embedding key
2021-11-23 22:23:29 -05:00
steve-chavez
1b48531369
remove the db-embed-default-join config
2021-11-23 12:32:51 -05:00
steve-chavez
bf58a3600a
refactor: remove pgFmtLit
2021-11-18 17:01:58 -05:00
steve-chavez
bae5afbad6
feat: allow unknown on the is operator
...
Also make the IS values strict at the Parser level since IS cannot be
parametrized.
2021-11-18 17:01:58 -05:00
Laurence Isla and GitHub
91689e28f0
Remove partitions from the schema cache
...
breaking: Embedding, OpenApi and other features related to the schema cache are no longer allowed on partitions.
2021-11-18 14:12:14 -05:00
monacoremo
43c8bde8ce
refactor: Add doctests
2021-11-13 04:07:46 +01:00
monacoremo
41ac0d5d93
refactor: Remove Protolude.Conv from Middleware
2021-11-12 20:25:22 +01:00
monacoremo
60db026dcc
refactor: Remove Protolude.Conv from RangeQuery
2021-11-12 20:25:22 +01:00
monacoremo
47b6f04a66
refactor: Remove Protolude.Conv from AppState
2021-11-12 20:25:22 +01:00
monacoremo
f228cccbae
refactor: Remove Protolude.Conv from Proxy
2021-11-12 20:25:22 +01:00
monacoremo
3820590649
refactor: Remove Protolude.Conv from SqlFragment
2021-11-12 20:25:22 +01:00
monacoremo
8cc8531e49
refactor: Remove Protolude.Conv from Workers
2021-11-12 20:25:22 +01:00
monacoremo
65062364c4
refactor: Remove Protolude.Conv from Error
2021-11-12 20:25:22 +01:00
monacoremo
ebe66cb985
refactor: Remove Protolude.Conv from Statements
2021-11-12 20:25:22 +01:00
monacoremo
9c172db534
refactor: Remove Protolude.Conv from CLI
2021-11-12 20:25:22 +01:00
monacoremo
de531b6b41
refactor: Remove Protolude.Conv from OpenAPIw
2021-11-12 20:25:22 +01:00
monacoremo
71cb8afc0d
refactor: Remove Protolude.Conv from JSPath
2021-11-12 20:25:22 +01:00
monacoremo
36dbd09459
refactor: Remove Protolude.Conv from ApiRequest
2021-11-12 20:25:22 +01:00
monacoremo
fa4df95f55
refactor: Remove Protolude.Conv from Parsers
2021-11-12 20:25:22 +01:00
monacoremo
4104f5fb75
refactor: Remove Protolude.Conv from App
2021-11-12 20:25:22 +01:00
monacoremo
abb6167caa
refactor: Remove Protolude.Conv from DbStructure
2021-11-12 20:25:22 +01:00
monacoremo
15ea7dfe09
refactor: Remove Protolude.Conv from GucHeader
2021-11-12 20:25:22 +01:00
monacoremo
a2c2544271
refactor: Remove Protolude.Conv from Config
2021-11-12 20:25:22 +01:00
monacoremo
2b22f889bd
refactor: Remove GHC.Show instances from JSPath module
2021-11-09 19:13:52 +01:00
monacoremo
cd3013569e
refactor: Remove GHC.Show instances from QualifiedIdentifier and Config
2021-11-09 19:13:52 +01:00
monacoremo
5dc37fc8e8
refactor: Remove GHC.Show instances from Request.Types module
2021-11-09 19:13:52 +01:00
monacoremo
038d84b62d
refactor: Remove GHC.Show instances in Preferences module
2021-11-09 19:13:52 +01:00
Laurence Isla and GitHub
40f9a6068a
Allow overloaded functions if one has a single unnamed JSON param
...
Avoids the breaking change in #1927 : If there's a function "my_func" having a single unnamed json param and other overloaded pairs(with any number of params), PostgREST won't be able to resolve a POST request to "my_func".
2021-11-08 18:26:33 -05:00
monacoremo
5cd7d35966
refactor: Make import aliases consistent across the codebase
2021-11-05 08:08:00 +01:00
Wolfgang Walther and Wolfgang Walther
a1b3bca7fc
fix: Make pfkSourceColumns query work with standard_conforming_strings = off
2021-10-28 08:21:11 +02:00