Robert Vollmert
e731241b97
test: optionally build postgrest with cabal in postgrest-loadtest
...
By default, postgrest-with-pgrst builds postgrest as a nix package,
which means that source changes cause a full rebuild. With this
change, running the loadtest as
PGRST_BUILD_CABAL=1 postgrest-loadtest
rebuilds directly using cabal, like postgrest-build. Note that
results between nix and cabal builds aren't necessarily comparable
due to differing build parameters.
2023-03-20 15:00:11 +01:00
Robert Vollmert
216dc833fd
test: add optional latency to postgrest-loadtest
...
This pipes data between client/postgrest and between
postgrest/database through a proxy that adds delay
(github.com/robx/slocat).
2023-03-20 15:00:11 +01:00
Steve Chavez and GitHub
b05ea14122
nix: add notices for postgrest-with-* commands ( #2697 )
...
For knowing where to connect and how to get logs
2023-03-07 12:42:41 -05:00
steve-chavez
2a2889020a
nix: fix PGTZ on postgrest-with-* commands
2023-02-20 17:23:11 -05:00
steve-chavez
c49932d3a8
nix: UTC by default for postgrest-with-postgresql
2023-02-14 21:30:45 -05:00
steve-chavez
f4135bb3ff
nix: correct postgrest-release pre
2023-02-09 16:46:27 -05:00
steve-chavez
52ba757ebe
nix: postgrest-release bumps pre minor
2023-01-31 19:11:45 -05:00
Robert and GitHub
12ad7d0585
test: fix result path for load test ( #2628 )
2023-01-25 08:56:52 +01:00
Tuan Le and Steve Chavez
8aa79086d2
fix: consider authentication failure as a fatal error
2023-01-20 13:51:28 -05:00
Robert and GitHub
8f80cd1469
Update nixpkgs, dependencies ( #2612 )
...
* relax upper bounds on HTTP, hspec, lens-aeson, optparse-applicative (fixes #2580 )
* upgrade stackage snapshot to latest LTS, with GHC 9.2.5
* bump nixpkgs to 2023-01-12
* fix complaints due to updated linters
2023-01-16 17:12:54 +01:00
Robert and GitHub
5fd6b3956e
ci: Add workflow to seed cachix ( #2615 )
...
Fixes #2609 .
2023-01-16 16:56:48 +01:00
Robert and GitHub
5a0f83ecb8
bump postgresql-libpq ( #2599 )
...
For https://github.com/PostgREST/postgresql-libpq/pull/2 .
2022-12-30 15:40:17 +01:00
steve-chavez
781fa592ca
refactor: delete QueryCost, instead use PlanSpec
2022-12-12 13:31:02 -05:00
Robert Vollmert and Wolfgang Walther
5e65b2afaf
fix: bump hasql-pool to 0.8.0.6
...
This update ensures that connections aren't lost if they throw
an exception. Compare #2558 .
2022-11-05 15:48:52 +01:00
c8e4f38984
feat: Build against libpq 15
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
Co-authored-by: Wolfgang Walther <walther@technowledgy.de >
2022-11-02 08:25:07 +01:00
steve-chavez
0b1f8358c6
nix: postgrest-release modifies CHANGELOG
2022-10-28 17:52:58 -05:00
Wolfgang Walther
2cce82bdd5
chore: Upgrade nixpkgs to 2022-10-28
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-28 14:27:56 +02:00
Robert Vollmert and Wolfgang Walther
800873ed91
try applying same override to openssl_1_1 as openssl
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
b702c5fbe4
pytest_xdist -> pytest-xdist
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
cfd0ee35d3
bump haskell dependency versions
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
31cd0bbff4
bash_5 -> bash
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
78ec8a095a
bump nixpkgs again, hoping this fixes things
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
39959fa330
fix nixpkgs-ugprade to use correct /bin/date
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
fc3a01fabe
further bump, simplify hackage overrides
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
03b810ffa5
allow/use lens 5.2
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
177ec4df85
downgrade postgis
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
dbf645b899
upgrade nix wip
2022-10-28 10:49:04 +02:00
Wolfgang Walther and Wolfgang Walther
88b5966a44
nix: Remove deprecation warning for dockerTools.buildImage { contents }
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 19:29:26 +02:00
Steve Chavez and GitHub
0fbb116dd2
add basic ARCHITECTURE.md ( #2503 )
...
* refactor: move ApiRequest a top-level module
* refactor: rename DbStructure to SchemaCache
* refactor: GucHeader inside Response
* refactor: admin app to Workers
2022-10-10 11:24:45 -05:00
Wolfgang Walther and Steve Chavez
9d3bbc736b
nix: Add hint how to derive docker image
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-09-20 16:39:37 -05:00
Robert Vollmert
38ecaa44db
encode json body in binary, using modified hasql dep
...
- switch from "unknown" parameter in text format to a "json" parameter in
binary format (no dependency update required)
- use a lazy bytestring "json" encoder (via updated hasql)
2022-09-19 20:49:11 +02:00
Robert Vollmert
efd65ff1f4
nix: add update-nix-fetchgit to shell
2022-09-19 20:49:11 +02:00
Robert Vollmert
524c6a7c2c
postgresql-libpq: use PostgREST fork with reduced copies
...
This pulls in the change from https://github.com/PostgREST/postgresql-libpq/pull/1 .
2022-09-05 23:27:41 +02:00
Robert Vollmert
e2aa227597
upgrade to hasql-1.6, hasql-pool-0.8.0.2
...
- hasql-pool-0.8
* 'release' now flushes the pool, and no longer destroys it;
'PoolIsReleasedUsageError' is gone compared to our fork
* now supports an acquisition timeout, which we don't use
yet
* lower bound on 0.8.0.2 to fix a Windows build issue
- hasql-1.6
introduces a position parameter to ServerError, which we
ignore
2022-08-30 20:59:26 +02:00
Robert Vollmert
90eaaefe12
upgrade to fork of hasql-pool 0.7.2 ( fixes #2401 )
...
This version of hasql-pool is a simplified rewrite that doesn't use
the resource-pool package. The major API changes are that idle
connections are no longer timed out (and the corresponding setting
is gone), and that `release` makes the pool unusable, where it used
to remain usable and only flushed idle connections.
We depend on a PostgREST fork of 0.7.2 that gives us reliable
flushing, compare https://github.com/PostgREST/hasql-pool/pull/1
- hasql-pool 0.7 removes timing out of idle connections, so
this change removes the db-pool-timeout option.
Given that we were typically running with very high
timeout settings, I don't anticipate the lack of timeout
to introduce new issues, though we might want to consider
introducing some retry-logic down the line when we
encounter connection failures.
- See https://github.com/PostgREST/postgrest/issues/2422 for a
discussion on depending on a forked dependency. Besides adding
the dependency to the nix overlay, we're also adding it to
stack.yaml and a new cabal.project to allow stack/cabal users
to build the project.
2022-08-29 14:55:09 +02:00
Matt Votava and GitHub
f75e77cf60
Nix: allow building from pure-eval mode ( #2427 )
...
* default.nix: allow import with pure-eval enabled
* Update hercules-ci/gitignore
* shell.nix: fix import of default.nix
2022-08-15 20:44:02 -05:00
Robert Vollmert
57bc3d805c
nix: bump nixpkgs version
...
- move from GHC 9.2.3 to GHC 9.2.4
- drop upstreamed openssl runtime dependency patch
2022-08-10 06:46:43 +02:00
Robert Vollmert
bfacec3a67
ci: check python file formatting
...
Previously, postgrest-style would reformat python files, but their
formatting wasn't enforced.
2022-08-02 09:24:14 +02:00
Steve Chavez and GitHub
8911afd079
feat: Allow getting the EXPLAIN plan of a request
2022-07-27 19:33:34 -05:00
steve-chavez
df49f482dc
test: no empty tx started for invalid path/method
2022-07-15 22:23:33 -05:00
Robert Vollmert
23e4c7fe6e
nix: bump nixpkgs version
2022-07-16 00:14:25 +02:00
Robert Vollmert
9252ec2509
ci: verify that static executable is static
2022-07-12 23:25:06 +02:00
steve-chavez
86c40e8df9
test: don't run spec tests with stack
...
We cannot handle postgis and other postgresql dependencies with
stack.
Also delete test/with_tmp_db since it's no longer used.
2022-06-22 22:16:44 -05:00
steve-chavez
d87b622d64
nix: update tests README
2022-06-20 15:55:22 -05:00
Laurence Isla and GitHub
7088e9d510
nix: Add command to remove old hie files in postgrest-clean
2022-06-16 19:16:15 -05: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
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