Robert and GitHub
fe8b32d077
Merge pull request #2324 from robx/ghc92
...
Update GHC to 9.2.2 (fixes #2288 )
2022-06-16 18:45:10 +02:00
Robert Vollmert
478c48cc84
nix: define GHC 9.2.2's Cabal version for static build
2022-06-16 10:39:03 +02:00
Robert Vollmert
c9c64fd71f
nix: update hsie for GHC 9.2
2022-06-16 10:39:03 +02:00
Robert Vollmert
93210f9380
nix: upgrade weeder to 2.4.0 (GHC 9.2 compatible)
2022-06-16 10:39:02 +02:00
Robert Vollmert
c25473e001
nix: upgrade ptr to 0.16.8.2 (GHC 9.2 compatible)
2022-06-16 10:39:02 +02:00
Robert Vollmert
f3cbab6f82
nix: use GHC 9.2.2
2022-06-16 10:39:02 +02:00
Robert Vollmert
3d65d66b1b
tests: fix incomplete pattern warnings (GHC 9.2)
2022-06-16 10:39:02 +02:00
Robert Vollmert
f582798276
ReadQuery: split out to fix record field warning
...
The use of `where_` in DbRequestBuilder issues a warning since
GHC 9.2 as per
https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0366-no-ambiguous-field-access.rst
To disambiguate that, move the type to a separate module and use
the record field names qualified. For symmetry, MutateQuery also
gets its own module.
2022-06-16 10:38:59 +02:00
Robert Vollmert
ba87a60a47
rangeParse: fix incomplete pattern match warning
...
The warning is new in GHC 9.2 compared to 8.10.
2022-06-16 10:37:05 +02:00
Robert Vollmert
356bff9cbd
cabal: relax upper bounds to allow GHC 9.2
2022-06-16 10:37:05 +02:00
Steve Chavez and GitHub
86574c89a8
Bulk update ( #2311 )
...
* refactor: remove EmbedPath type from qsFiltersRoot
* Rename reset items function for reusability
2022-06-15 20:30:31 -05:00
Robert Vollmert
734f8e6df2
nix: fix static build
...
- the isExecutable patch was broken, remove it
- the ncurses fix was broken, we still need `enableStatic`
- the original error was caused by the new ghc-bignum
package, which isn't a "proper" Haskell package; we filter
this out explicitly now
2022-06-16 01:07:28 +02:00
steve-chavez
df7d71db32
fix: Increase the db-pool-timeout to 1 hour
2022-06-15 13:19:44 -05:00
Robert Vollmert
0c5d2e553e
nix: build postgrest with nix in loadtest ( fixes #2308 )
...
This allows running the load test against main even if the
dependencies change.
2022-06-15 00:41:38 +02:00
Robert Vollmert
36ed7e2fb7
src, nix: hlint update
...
This pulls in an updated hlint version from nixpkgs, and fixes some
new eta-reduction warnings. (I don't particularly think this is more
readable, but I suppose being consistently hlint-clean is worth it.)
2022-06-14 19:13:55 +02:00
Robert and GitHub
bac63f339d
Merge pull request #2292 from robx/aeson2
...
Upgrade aeson to 2.0.*
2022-06-14 07:43:08 +02:00
Robert Vollmert
8d8074d500
nix: keep old hlint
...
This keeps the pre-nixpkgs update hlint version, so we can defer
addressing the warnings to a follow-up PR.
2022-06-13 13:25:54 +02:00
Robert Vollmert
63ebf6e92b
nix: hack static-haskell-nix for updated nixpkgs
...
This patches static-haskell-nix to work for building postgrest
with updated nixpkgs (from ~202203):
- The ncurses 'enableStatic' argument doesn't exist anymore.
We use the vanilla package instead, which seems to work fine.
- The 'isExecutable' check fails with a strange error related
to trying to override 'mkDerivation'.
We patch 'isExecutable' to check explicitly whether we're building
postgrest. ('isExecutable' is used to determine whether to build
a package statically.)
2022-06-13 13:25:54 +02:00
Robert Vollmert
d7f54e76f4
nix: haskell overlay update
2022-06-13 13:25:54 +02:00
Robert Vollmert
34d0f34620
nix: bashCompletion -> bash-completion
2022-06-13 13:25:54 +02:00
Robert Vollmert
14c882a566
nix: fetch PostgreSQL 9.6 via postgresql legacy overlay
2022-06-13 13:25:54 +02:00
Wolfgang Walther and Robert Vollmert
ff56c3adf4
nix: port openssl patch to updated nixpkgs
2022-06-13 13:25:54 +02:00
Robert Vollmert
12967f8643
nix: nix version bump
2022-06-13 13:25:54 +02:00
Robert Vollmert
b056735535
stack: update stack.yaml
2022-06-13 13:25:54 +02:00
Robert Vollmert
f5afa419f1
cabal, tests: require wai-logger 2.4.0, adapt tests
...
wai-logger version 2.4.0 fixes log output to not say 'unknownSocket'
for unix sockets.
2022-06-13 13:25:54 +02:00
Robert Vollmert
7531c5490d
cabal: allow hasql-1.5, hasql-dynamic-statements-0.3.*
2022-06-13 13:25:54 +02:00
Robert Vollmert
bb62e559d6
cabal: require jose >= 0.8.5.1 (aeson-2 compat)
...
jose version before 0.8.5.1 lacked an upper bound on
aeson-2, causing build failures with aeson-2 present.
2022-06-13 13:25:54 +02:00
Robert Vollmert
e42bf30aeb
cabal: allow swagger 2.8
2022-06-13 13:25:54 +02:00
Robert Vollmert
2b8ffc8e61
src: update for changed map type in aeson-2
...
This means that we're now using Data.Map.Strict instead of
Data.HashMap.Strict for JSON objects in general, and specifically
for claims maps and CSV rows.
This addresses certain hash flooding vulnerabilities, but may
have performance downsides.
Compare e.g. https://frasertweedale.github.io/blog-fp/posts/2021-10-12-aeson-hash-flooding-protection.html
2022-06-13 13:25:54 +02:00
Robert Vollmert
48a3d1d516
cabal: update aeson to 2.0.3
2022-06-13 13:16:56 +02:00
Robert Vollmert
5e6987b1d8
src: consistently import HashMap as HM, Map as M
...
With both HashMap and Map imported as M in different modules,
linter rules prevented ever importing both modules in one place.
2022-06-13 13:16:50 +02:00
Robert Vollmert
4dfcb59f73
nix: more explicit logging in load test
...
* Write vegeta output to file explicitly.
The previous version using `tee` captured the standard
output of the `withPgrst` helper, too, causing weird
errors when those had unexpected output.
* Log and fail the postgrest build explicitly.
In situations such as changing nix dependencies, the
`cabal build` run could fail, but this wasn't visible
in CI.
With these changes, the load test now fails with a nice
error message when the build fails.
2022-06-09 14:56:50 +02:00
Laurence Isla and GitHub
620da2e776
Update CHANGELOG to include release v9.0.1 ( #2307 )
2022-06-08 23:00:19 -05:00
Laurence Isla and GitHub
f9688c3553
Upgrade protolude to 0.3.1
2022-06-08 11:41:39 -05:00
Robert Vollmert
4ff2469f57
nix: don't write to /nix/store from hsie build ( fixes #2304 )
...
This is a kind of hacky fix to the kind of hacky hsie derivation.
2022-06-07 21:36:38 +02:00
Robert Vollmert
e3252a6e9e
nix: test script without glibc locales
...
glibcLocales is not available e.g. on darwin. This change allows
running various dev tools on darwin, and other theoretical
non-glibc systems.
2022-06-07 21:36:38 +02:00
Robert Vollmert
a9035bba2f
nix: use the matching weeder
...
weeder needs to be compiled with the same GHC that we build postgrest
with.
Before this change, we were relying on the fact that we happened
to set ${compiler} to the same ghc8107 as used by nixpkgs for
haskellPackages, now we explicitly take it from the correct
haskell package set.
2022-06-07 21:36:38 +02:00
Robert Vollmert
4c8c3ccfb2
nix: pass through hspec arguments to postgrest-test-spec
...
This allows e.g. running
postgrest-test-spec --match "some failing test"
2022-06-07 21:36:38 +02:00
Robert Vollmert
09f3e09c96
tests: don't specify openapi root result
...
Whereas the test used to specify a body of
[{"qiName":"referrals","qiSchema":"test"},"private"]
we see both
[{"qiName":"authors_w_entities","qiSchema":"test"},"test"]
and
[{"qiName":"organizations","qiSchema":"test"},"test"]
on the GHC 9.2 upgrade PR.
This changes the test to no longer expect a particular body.
Compare:
- https://github.com/PostgREST/postgrest/pull/2292#issuecomment-1146160792
- https://github.com/PostgREST/postgrest/issues/1698
2022-06-07 16:56:22 +02:00
Franz-Josef Färber and Steve Chavez
807364bd7b
RPC POST for function w/single unnamed XML param
2022-06-03 11:52:57 -05:00
steve-chavez
d14f745406
bump version to 9.0.0.20220531
2022-05-31 18:19:02 -05:00
steve-chavez
1cdc9169c7
fix: using CPU while idle
2022-05-31 12:17:36 -05:00
steve-chavez
9aa400c8f3
fix: disable parallel GC for perf on high-core CPU
2022-05-31 12:17:36 -05:00
Laurence Isla and GitHub
e4cdb8c491
ci: run on branches starting with "rel-"
2022-05-30 22:38:05 -05:00
Laurence Isla and Steve Chavez
c812a3fe3e
ci: Run ARM builds on releases
2022-05-16 18:10:36 -05:00
steve-chavez
1ab11de96c
bump version to 9.0.0.20220516
2022-05-16 14:36:04 -05:00
steve-chavez
f7b173163c
fix: ignore views on col/fk as target
...
Also refactor self relationship findRel logic
2022-05-16 12:22:24 -05:00
steve-chavez
2be63b36d6
refactor: self relationship
...
* Add test for self relationship in view
2022-05-09 21:31:19 -05:00
steve-chavez
c60380b5fc
perf: RelationshipsMap with foreign schema as key
2022-05-09 21:31:19 -05:00
steve-chavez
d88b16e5ab
fix: allow cast on types with underscores/numbers
...
e.g. select=oid_array::_int4
2022-05-09 13:02:33 -05:00