summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Obscure the dsn password before storing it into the connectionobscure-password-before-connectDaniele Varrazzo2019-06-223-42/+38
| | | | | | This avoids the need to juggle with exceptions in order to scrub the password after a connection error, which may also swallow signals (see #898).
* Fix typo: "the the"Jon Dufresne2019-06-214-10/+10
|
* Bump to next dev version numberDaniele Varrazzo2019-06-211-1/+1
|
* typo: remove 'a'Kunal Marwaha2019-06-191-1/+1
|
* Bump to version 2.8.32_8_3Daniele Varrazzo2019-06-101-1/+1
|
* Added entry about how to ask questionsDaniele Varrazzo2019-06-102-2/+28
| | | | | | | | Also fixed mailing list link (although it doesn't seem there's a link to a subscription page anymore, you have to go through the community portal). Close #930.
* Making my linter happyDaniele Varrazzo2019-06-071-3/+5
|
* Merge branch 'fix-namedtuple-cache'Daniele Varrazzo2019-06-073-6/+23
|\
| * Mention #928 fixedDaniele Varrazzo2019-06-071-0/+1
| |
| * fix `NamedTupleCursor._cached_make_nt`Changaco2019-06-042-6/+12
| |
| * improve the NamedTupleCursor cache testChangaco2019-06-041-0/+10
|/
* Merge branch 'feature/smart-feedback'Daniele Varrazzo2019-05-1212-97/+197
|\
| * Added news entry about smart replication feedbackDaniele Varrazzo2019-05-121-0/+9
| |
| * Address code-reviewAlexander Kukushkin2019-05-071-1/+1
| |
| * Improve docsAlexander Kukushkin2019-05-061-0/+14
| |
| * Change the default value of keepalive_interval parameter to NoneAlexander Kukushkin2019-05-062-10/+29
| | | | | | | | | | The previous default value was 10 seconds, what might cause silent overwrite of the *status_interval* specified in the `start_replication()`
| * Smart replication feedbackAlexander Kukushkin2019-05-0611-89/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit makes psycopg2 responsible for sending the status update (feedback) messages to the server regardless of whether a synchronous or asynchronous connection is used. Feedback is sent every *status_update* (default value is 10) seconds, which could be configured by passing a corresponding parameter to the `start_replication()` or `start_replication_expert()` methods. The actual feedback message is sent by the `pq_read_replication_message()` when the *status_update* timeout is reached. The default behavior of the `send_feedback()` method is changed. It doesn't send a feedback message on every call anymore but just updates internal structures. There is still a way to *force* sending a message if *force* or *reply* parameters are set. The new approach has certain advantages: 1. The client can simply call the `send_feedback()` for every processed message and the library will take care of not overwhelming the server. Actually, in the synchronous mode it is even mandatory to confirm every processed message. 2. The library tracks internally the pointer of the last received message which is not keepalive. If the client confirmed the last message and after that server sends only keepalives with increasing *wal_end*, the library can safely move forward *flush* position to the *wal_end* and later automatically report it to the server. Reporting of the *wal_end* received from keepalive messages is very important. Not doing so casing: 1. Excessive disk usage, because the replication slot prevents from WAL being cleaned up. 2. The smart and fast shutdown of the server could last indefinitely because walsender waits until the client report *flush* position equal to the *wal_end*. This implementation is only extending the existing API and therefore should not break any of the existing code.
* | Merge remote-tracking branch 'origin/appveyor-py'Daniele Varrazzo2019-05-013-210/+922
|\ \ | |/ |/|
| * Appveyor: added package_name to optionsappveyor-pyDaniele Varrazzo2019-04-221-6/+9
| |
| * Dropped command line config from appveyor scripsDaniele Varrazzo2019-04-222-222/+247
| | | | | | | | | | | | | | | | | | | | Only use env vars, they were unused. Use consistently a config object with properties instead of functions (the one returning a binary are especially dangerous if parens are forgotten). Also add helpers to call the target python more succinctly.
| * Run tests more quiet/faster building wheelsDaniele Varrazzo2019-04-221-5/+12
| | | | | | | | We are mostly interested it installed alright.
| * Better dir names in appveyor buildDaniele Varrazzo2019-04-221-20/+29
| |
| * Added support for wheel building and uploadingDaniele Varrazzo2019-04-221-22/+225
| | | | | | | | To be used by the psycopg/psycopg2-wheels project.
| * Configure postgres to run appveyor tests on sslDaniele Varrazzo2019-04-222-7/+59
| |
| * Setup build environment only before buildingDaniele Varrazzo2019-04-221-1/+1
| |
| * appveyor: added logging level configurationDaniele Varrazzo2019-04-221-3/+24
| |
| * Using pathlib to manipulate pathsDaniele Varrazzo2019-04-221-66/+72
| |
| * Dropped problematic init stepDaniele Varrazzo2019-04-222-27/+17
| | | | | | | | | | It was performed before repos cloned so no resource available (including the script!)
| * All together now, let's make this realDaniele Varrazzo2019-04-222-33/+0
| |
| * Test packages from PythonDaniele Varrazzo2019-04-222-18/+47
| |
| * Build psycopg from PythonDaniele Varrazzo2019-04-222-16/+38
| |
| * Build libpq from PythonDaniele Varrazzo2019-04-223-107/+186
| |
| * Build openssl from PythonDaniele Varrazzo2019-04-222-49/+94
| |
| * Added setenv to log env vars changesDaniele Varrazzo2019-04-221-15/+16
| |
| * Added script to implement appveyor functionality in PythonDaniele Varrazzo2019-04-222-36/+289
|/ | | | Only the init step for the moment.
* Check return code of pthread_mutex_initfix-901Daniele Varrazzo2019-04-211-10/+12
| | | | Close #901
* Bump to next dev version numberDaniele Varrazzo2019-04-211-1/+1
|
* Bumping to version 2.8.22_8_2Daniele Varrazzo2019-04-141-1/+1
|
* Added FAQ entry about the change in binary packages in 2.8Daniele Varrazzo2019-04-142-12/+26
|
* Merge branch 'openssl-1.1-windows'Daniele Varrazzo2019-04-145-19/+33
|\
| * Mention building openssl 1.1 on windows in news fileDaniele Varrazzo2019-04-111-0/+7
| | | | | | | | Close #836.
| * Build and test with openssl 1.1 on windowsDaniele Varrazzo2019-04-114-19/+31
| | | | | | | | Porting to openssl 1.1 by Matthew Brett, from the psycopg2-wheel repos.
* | Mention fix to repeated fields in RealDictCursor in news fileDaniele Varrazzo2019-04-111-0/+7
|/
* Highlight in docs that the context manager doesn't close the connectionDaniele Varrazzo2019-04-071-3/+13
| | | | | Code as in #889 is not robust, but the behaviour is actually counter-intuitive.
* More robust RealDictRow populationDaniele Varrazzo2019-04-061-1/+1
| | | | | | | In the presence of repeated columns the mapping would have remained into into the dictionary. Now it is removed. Fix #884
* Version bumped to next dev releaseDaniele Varrazzo2019-04-061-1/+1
|
* Fixed debug title level in newsDaniele Varrazzo2019-04-061-1/+1
|
* Fixed link to RealDictRow from last newsDaniele Varrazzo2019-04-061-1/+1
|
* Bumping to version 2.8.12_8_1Daniele Varrazzo2019-04-061-1/+1
|
* Merge branch 'fix-886'Daniele Varrazzo2019-04-063-48/+66
|\