Commit Graph

1230 Commits (a0d2ce5a0edab3431ab1ea4744df19726ed85fac)

Author SHA1 Message Date
Jack Christensen a0d2ce5a0e
Merge pull request #477 from fastest963/cancel
Added option to customize query cancellation and wait for ready
2018-11-08 19:30:15 -06:00
James Hartig 527f404bbc Added option to customize query cancellation and wait for ready
CockroachDB doesn't support 80877102 and doesn't plan to, so instead allow
the user to customize the cancellation with their own function. In our
function, we call CANCEL QUERY with the query_id based on the LocalAddr().

The WaitForReady method can be used by a pool to not put a connection back
in the pool until it is finished cancelled and ready for a new query.
2018-11-05 20:28:59 -05:00
Jack Christensen c10ee2b7bf
Merge pull request #473 from Mic92/unix-sockets
Add path query parameter to support unix sockets
2018-11-05 18:58:19 -06:00
Jörg Thalheim 3410ad9122
Add host query parameter to support unix sockets
Currently there is no way to specify unix sockets in the connection
url. This patch adds a `host` query parameter that allows to set the path.
2018-11-03 21:07:33 +00:00
Jack Christensen a76c2eb9c8
Merge pull request #476 from tejasmanohar/remove_tls_renegotiation_msg
tls: stop sending ssl_renegotiation_limit in startup message
2018-11-03 15:03:23 -05:00
Tejas Manohar e2010c858c tls: stop sending ssl_renegotiation_limit in startup message
This addresses https://github.com/jackc/pgx/issues/321 with the
fix @jackc proposed there. Redshift users that need to connect
w/ SSL currently fork the library to delete this parameter, e.g.

8e0028d742

And, that's annoying to keep up-to-date :)
2018-10-29 21:50:09 -07:00
Jack Christensen 381a1e8156
Merge pull request #471 from MOZGIII/checked-out-connections
Added CheckedOutConnections for ConnPoolStat
2018-10-29 17:27:26 -05:00
Jack Christensen c047f4dd94
Merge pull request #470 from blind-oracle/master
Replication: Add NOEXPORT_SNAPSHOT, GetConnInfo() function
2018-10-29 17:26:01 -05:00
MOZGIII e4632da034
Added CheckedOutConnections for ConnPoolStat
Closes #468
2018-10-23 14:41:21 +03:00
Igor Novgorodov 04bead7c8a Replication: add NOEXPORT_SNAPSHOT, add GetConnInfo() func 2018-10-23 10:50:34 +02:00
Igor Novgorodov e49735a0c4
Merge pull request #1 from jackc/master
Merge
2018-10-23 10:31:18 +02:00
Jack Christensen 20eaa7963b
Merge pull request #463 from fpetrini/copy_from_reader
Handle (n > 0 and err == io.EOF) in CopyFromReader
2018-10-10 07:56:47 -05:00
Fredrik Petrini c6cec81e2c Fix: Handle (n > 0 and err == io.EOF) in CopyFromReader as per io.Reader documentation 2018-10-08 11:39:18 +02:00
Jack Christensen 0b00887bf8
Merge pull request #461 from nitsky/master
add float types to database/sql ColumnType ScanType()
2018-09-22 15:34:18 -05:00
David Yamnitsky 81dbdeea7a
add float types to database/sql ColumnType ScanType() 2018-09-22 15:15:15 -04:00
Jack Christensen 897e90f353 Type modifier should be int32 not uint32 2018-09-22 07:43:18 -05:00
Jack Christensen 1b754b5f70
Merge pull request #458 from GeertJohan/patch-1
Fix undefined identifiers in example
2018-09-22 07:21:15 -05:00
Geert-Johan Riemer 8efdbc9345
Update doc.go
Fix undefined identifiers in example
2018-09-17 17:45:08 +02:00
Jack Christensen 655313b801
Merge pull request #456 from tehbrut/hotfix/context_leak
Call context.WithTimeout cancel function
2018-09-15 09:47:02 -05:00
Jack Christensen 25098d56f9
Merge pull request #455 from regeda/pool-queue-vs-stack
Pool should work like a queue
2018-09-15 09:31:52 -05:00
Valery Krivchikov 1f054a77ea fix new variables on left side 2018-09-15 14:50:17 +03:00
Valery Krivchikov 0468c97a7e Fix undefined cancel 2018-09-15 14:27:29 +03:00
Valery Krivchikov c844a2402b Call context.WithTimeout cancel function 2018-09-15 13:23:09 +03:00
Anthony Regeda 00d38a68a8
pool-queue-vs-stack pool should work like a queue to traverse all possible connections 2018-09-09 23:22:19 +03:00
Jack Christensen e44f0f24c4
Merge pull request #454 from regeda/macaddr-array
macaddr array is introduced
2018-09-01 22:46:13 -04:00
Jack Christensen 5deea5b971 Convert driver.Valuer's earlier in bind path
fixes #449
2018-09-01 21:37:16 -05:00
Jack Christensen 302c74f214 Fix: do not silently ignore assign NULL to *string
AssignTo can only assign NULL to a **string. Previous code tried to
assign nil to a *string, which did nothing. Correct behavior is to
detect this as an error.
2018-09-01 18:40:42 -05:00
Anthony Regeda b0702cf2b1
macaddr-array macaddr array is introduced 2018-09-01 16:06:20 +03:00
Jack Christensen aa561b8f3c
Merge pull request #438 from ikitiki/text-copy
Add CopyFromReader and CopyToWriter methods
2018-08-11 09:25:36 -05:00
Murat Kabilov 4e9a696434 addressing the comments
add copy methods to the Tx struct
2018-08-07 23:44:02 +03:00
Jack Christensen 89f1e6ac72 Update changelog 2018-08-07 09:28:28 -05:00
Murat Kabilov 5315995dfa Add *Conn. CopyFromTextual, CopyToTextual, which use textual format for copying data 2018-07-31 08:57:53 +02:00
Jack Christensen 93ee40e691
Merge pull request #436 from ikitiki/fix-config-merge
Mind PreferSimpleProtocol parameter in the config Merge method
2018-07-24 09:53:07 -05:00
Murat Kabilov d9f21d02a5 mind PreferSimpleProtocol parameter in the config Merge method 2018-07-24 16:03:26 +02:00
Jack Christensen b8832c26d4 Fix go vet issue 2018-07-14 11:49:48 -05:00
Jack Christensen 20c02acd63 Fix deadlock when CopyFromSource panics
fixes #433
2018-07-14 11:26:09 -05:00
Jack Christensen 3cbe92ebb5 Merge branch 'james-lawrence-implement-opendb' 2018-07-14 09:58:35 -05:00
Jack Christensen 0a483bad9d Merge branch 'implement-opendb' of https://github.com/james-lawrence/pgx into james-lawrence-implement-opendb 2018-07-14 09:57:49 -05:00
Jack Christensen 39bbc98d99 Do not use same tls.Config for fallback in test 2018-06-08 15:19:56 -05:00
Jack Christensen 31d6f038d3 Merge branch 'dvic-improve-decode-error-msg' 2018-06-08 15:16:41 -05:00
Jack Christensen 368d06ece1 Merge branch 'improve-decode-error-msg' of https://github.com/dvic/pgx into dvic-improve-decode-error-msg 2018-06-08 15:16:09 -05:00
Jack Christensen 7b6f0ffc8c Fix race in TLS tests 2018-06-08 15:14:45 -05:00
Damir Vandic fa045b7a4b Add the type of the value in all decode error messages 2018-06-04 21:02:20 +02:00
Jack Christensen 8707449219 Merge branch 'tarikdemirci-master' 2018-05-17 16:45:46 -05:00
Jack Christensen a6ac63930a Merge branch 'master' of https://github.com/tarikdemirci/pgx into tarikdemirci-master 2018-05-17 16:45:32 -05:00
Jack Christensen e04f5443d5 Fix test with formatting directive 2018-05-17 16:45:01 -05:00
Jack Christensen 6044dcbe21 Fix race in TLS test 2018-05-17 16:43:15 -05:00
Tarik Demirci 1149b0f015
Allow setting nil to pgtype.Bool 2018-05-17 12:22:48 +02:00
Jack Christensen f42b0f65fc Commit and rollbase need not check for failure state 2018-05-12 19:59:12 -05:00
Jack Christensen f114ec85a1 Allow recovery from failed transaction
rollback to savepoint can recover a failed transaction. Therefore we
shouldn't block any activities while the transaction is broken. Instead
we only have the Tx.Status() method return the information.

refs #421
2018-05-12 19:53:53 -05:00