-
Notifications
You must be signed in to change notification settings - Fork 6
Introduce on-demand connection acquisition mode #80
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
Open
arybczak
wants to merge
14
commits into
master
Choose a base branch
from
flexible-connections
base: master
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
Changes from 9 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
8feaea0
Introduce on-demand connection acquisition mode
arybczak b66c218
Fix race condition in notifyTest
arybczak 9051720
Make transaction modifying queries non-interruptible
arybczak 3f67a93
Strict fields
arybczak 8b4562c
HasCallStack
arybczak a353cdd
More uninterruptible queries
arybczak 992fb55
haddock
arybczak f1db73c
typo
arybczak 1526842
update ci
arybczak 53a54cc
Don't call getConnectionAcquisitionMode within uninterruptibleMask
arybczak 1cacce0
Fix typo
arybczak c93d40f
Reword description of AcquireOnDemand
arybczak 4cf655a
Remove do
arybczak 1e739fc
Explain mask in changeAcquisitionModeTo
arybczak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,7 +21,7 @@ author: Scrive AB | |
| maintainer: Andrzej Rybczak <[email protected]> | ||
| copyright: Scrive AB | ||
| category: Database | ||
| tested-with: GHC == { 8.10.7, 9.0.2, 9.2.8, 9.4.8, 9.6.6, 9.8.4, 9.10.1, 9.12.1 } | ||
| tested-with: GHC == { 9.2.8, 9.4.8, 9.6.7, 9.8.4, 9.10.2, 9.12.2, 9.14.1 } | ||
|
|
||
| extra-source-files: README.md | ||
| , CHANGELOG.md | ||
|
|
@@ -93,12 +93,11 @@ library | |
| , Database.PostgreSQL.PQTypes.Internal.C.Interface | ||
| , Database.PostgreSQL.PQTypes.Internal.C.Get | ||
|
|
||
| build-depends: base >= 4.14 && < 5 | ||
| build-depends: base >= 4.16 && < 5 | ||
| , text >= 0.11 | ||
| , aeson >= 1.0 | ||
| , async >= 2.1.1.1 | ||
| , bytestring >= 0.9 | ||
| , semigroups >= 0.16 | ||
| , time >= 1.4 | ||
| , vector >= 0.10 | ||
| , transformers-base >= 0.4 | ||
|
|
@@ -117,7 +116,7 @@ library | |
|
|
||
| hs-source-dirs: src | ||
|
|
||
| ghc-options: -Wall -Wprepositive-qualified-module | ||
| ghc-options: -Wall -Werror=prepositive-qualified-module | ||
|
|
||
| include-dirs: libpqtypes/src | ||
|
|
||
|
|
@@ -173,7 +172,7 @@ library | |
|
|
||
| test-suite hpqtypes-tests | ||
| type: exitcode-stdio-1.0 | ||
| ghc-options: -Wall -Wprepositive-qualified-module -threaded | ||
| ghc-options: -Wall -Werror=prepositive-qualified-module -threaded | ||
|
|
||
| hs-source-dirs: test | ||
| main-is: Main.hs | ||
|
|
@@ -206,7 +205,6 @@ test-suite hpqtypes-tests | |
| , text-show | ||
| , time >= 1.4 | ||
| , transformers-base >= 0.4 | ||
| , unordered-containers | ||
| , vector | ||
| , uuid-types | ||
|
|
||
|
|
||
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,11 @@ | ||
| module Database.PostgreSQL.PQTypes.Internal.BackendPid | ||
| ( BackendPid (..) | ||
| , noBackendPid | ||
| ) where | ||
|
|
||
| -- | Process ID of the server process attached to the current session. | ||
| newtype BackendPid = BackendPid Int | ||
| deriving newtype (Eq, Ord, Show) | ||
|
|
||
| noBackendPid :: BackendPid | ||
| noBackendPid = BackendPid 0 | ||
arybczak marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.