forked from PostgREST/postgrest
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static macos #157
Open
wolfgangwalther
wants to merge
168
commits into
main
Choose a base branch
from
static-macos
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Static macos #157
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wolfgangwalther
force-pushed
the
static-macos
branch
2 times, most recently
from
May 4, 2024 18:54
fbea5ce
to
14f0a49
Compare
wolfgangwalther
force-pushed
the
static-macos
branch
from
May 31, 2024 17:08
14f0a49
to
ca175fc
Compare
This seems to happen on nix 2.22 only, v2.21 in CI and v2.20 locally work fine. The error is: vendor folder is empty, please set 'vendorHash = null;' in your expression For full logs, run 'nix-store -l /nix/store/kxnnr344n7gsxzc6kycj19hs19rvddjj-slocat-go-modules.drv'. error: 1 dependencies of derivation '/nix/store/x9w480k36a11i99m6zp12d5cjijsn3lm-slocat.drv' failed to build Since the slocat module doesn't actually have any dependencies, this shouldn't matter much.
Clears the limitation mentioned on PostgREST#3536 The Listener no longer uses the https://hackage.haskell.org/package/retry package and instead uses a much simpler IORef in AppState for the delays. Additionally it no longer uses exception throwing/catching, which is rather messy and brings some concerns(PostgREST#3569 (comment)).
We have meanwhile received the commit in question.
This reverts commit c94aa9c.
Brings back the the signaling/waiting between the connection pool and the Listener. Prevents the GSSAPI error shown on PostgREST#3569
Co-authored-by: Steve Chavez <[email protected]>
- Schema cache stats are now logged to stderr - Log when the LISTEN channel gets a notification
PostgreSQL 11 is EOL since November 2023.
It used to be that this was only enabled with log-level=debug. But the default log-level is misleading, for example: ``` $ PGRST_DB_SCHEMAS="apflora" postgrest-with-postgresql-16 -f test/io/big_schema.sql postgrest-run ... 13/Nov/2024:22:08:20 -0500: Config reloaded 13/Nov/2024:22:08:20 -0500: Schema cache queried in 36.3 milliseconds 13/Nov/2024:22:08:20 -0500: Schema cache loaded 326 Relations, 305 Relationships, 7 Functions, 0 Domain Representations, 4 Media Type Handlers, 1194 Timezones ``` The "Schema cache loaded" can take a while to appear, yet the 22:08:20 time is the same. If we reveal the load time this is clarified: ``` 13/Nov/2024:22:08:37 -0500: Schema cache loaded in 16770.1 milliseconds ```
Currently it's redundant and not easy to read. ``` {"message":"JSON object requested, multiple (or no) rows returned", "details":"The result contains 2 rows"} ``` Now: ``` {"message":"Cannot coerce the result to a single JSON object", "details":"The result contains an array of 0 objects"} `` Also correct docs which had a wrong error code.
wolfgangwalther
force-pushed
the
static-macos
branch
from
November 23, 2024 15:03
ca175fc
to
218e375
Compare
Since we're currently on the unstable channel and will likely stay there for a while, let's encode this in the update script. Once we switch back to stable, if we do, we can still adjust it again.
This has been EOL since November and has been dropped from nixpkgs.
Instead of rolling our own, we can use some tooling from nix / nixpkgs. We drop the "statically linked" check, because our goal is to compile mostly-static executables to darwin, too. However, those will never be fully static, because they always link to the platform's libc.
We have fixed the static build of PostgreSQL upstream, so we don't need our separate overlay anymore. One more step towards building a static executable on other platforms.
This way we benefit from NixOS' binary cache to deliver GHC for us and don't need to cache it ourselves. This will become relevant once we do that for more platforms.
wolfgangwalther
force-pushed
the
static-macos
branch
from
December 23, 2024 21:10
218e375
to
ddbe7f0
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.