Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Obscure the dsn password before storing it into the connectionobscure-password-before-connect | Daniele Varrazzo | 2019-06-22 | 3 | -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 Dufresne | 2019-06-21 | 4 | -10/+10 |
| | |||||
* | Bump to next dev version number | Daniele Varrazzo | 2019-06-21 | 1 | -1/+1 |
| | |||||
* | typo: remove 'a' | Kunal Marwaha | 2019-06-19 | 1 | -1/+1 |
| | |||||
* | Bump to version 2.8.32_8_3 | Daniele Varrazzo | 2019-06-10 | 1 | -1/+1 |
| | |||||
* | Added entry about how to ask questions | Daniele Varrazzo | 2019-06-10 | 2 | -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 happy | Daniele Varrazzo | 2019-06-07 | 1 | -3/+5 |
| | |||||
* | Merge branch 'fix-namedtuple-cache' | Daniele Varrazzo | 2019-06-07 | 3 | -6/+23 |
|\ | |||||
| * | Mention #928 fixed | Daniele Varrazzo | 2019-06-07 | 1 | -0/+1 |
| | | |||||
| * | fix `NamedTupleCursor._cached_make_nt` | Changaco | 2019-06-04 | 2 | -6/+12 |
| | | |||||
| * | improve the NamedTupleCursor cache test | Changaco | 2019-06-04 | 1 | -0/+10 |
|/ | |||||
* | Merge branch 'feature/smart-feedback' | Daniele Varrazzo | 2019-05-12 | 12 | -97/+197 |
|\ | |||||
| * | Added news entry about smart replication feedback | Daniele Varrazzo | 2019-05-12 | 1 | -0/+9 |
| | | |||||
| * | Address code-review | Alexander Kukushkin | 2019-05-07 | 1 | -1/+1 |
| | | |||||
| * | Improve docs | Alexander Kukushkin | 2019-05-06 | 1 | -0/+14 |
| | | |||||
| * | Change the default value of keepalive_interval parameter to None | Alexander Kukushkin | 2019-05-06 | 2 | -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 feedback | Alexander Kukushkin | 2019-05-06 | 11 | -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 Varrazzo | 2019-05-01 | 3 | -210/+922 |
|\ \ | |/ |/| | |||||
| * | Appveyor: added package_name to optionsappveyor-py | Daniele Varrazzo | 2019-04-22 | 1 | -6/+9 |
| | | |||||
| * | Dropped command line config from appveyor scrips | Daniele Varrazzo | 2019-04-22 | 2 | -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 wheels | Daniele Varrazzo | 2019-04-22 | 1 | -5/+12 |
| | | | | | | | | We are mostly interested it installed alright. | ||||
| * | Better dir names in appveyor build | Daniele Varrazzo | 2019-04-22 | 1 | -20/+29 |
| | | |||||
| * | Added support for wheel building and uploading | Daniele Varrazzo | 2019-04-22 | 1 | -22/+225 |
| | | | | | | | | To be used by the psycopg/psycopg2-wheels project. | ||||
| * | Configure postgres to run appveyor tests on ssl | Daniele Varrazzo | 2019-04-22 | 2 | -7/+59 |
| | | |||||
| * | Setup build environment only before building | Daniele Varrazzo | 2019-04-22 | 1 | -1/+1 |
| | | |||||
| * | appveyor: added logging level configuration | Daniele Varrazzo | 2019-04-22 | 1 | -3/+24 |
| | | |||||
| * | Using pathlib to manipulate paths | Daniele Varrazzo | 2019-04-22 | 1 | -66/+72 |
| | | |||||
| * | Dropped problematic init step | Daniele Varrazzo | 2019-04-22 | 2 | -27/+17 |
| | | | | | | | | | | It was performed before repos cloned so no resource available (including the script!) | ||||
| * | All together now, let's make this real | Daniele Varrazzo | 2019-04-22 | 2 | -33/+0 |
| | | |||||
| * | Test packages from Python | Daniele Varrazzo | 2019-04-22 | 2 | -18/+47 |
| | | |||||
| * | Build psycopg from Python | Daniele Varrazzo | 2019-04-22 | 2 | -16/+38 |
| | | |||||
| * | Build libpq from Python | Daniele Varrazzo | 2019-04-22 | 3 | -107/+186 |
| | | |||||
| * | Build openssl from Python | Daniele Varrazzo | 2019-04-22 | 2 | -49/+94 |
| | | |||||
| * | Added setenv to log env vars changes | Daniele Varrazzo | 2019-04-22 | 1 | -15/+16 |
| | | |||||
| * | Added script to implement appveyor functionality in Python | Daniele Varrazzo | 2019-04-22 | 2 | -36/+289 |
|/ | | | | Only the init step for the moment. | ||||
* | Check return code of pthread_mutex_initfix-901 | Daniele Varrazzo | 2019-04-21 | 1 | -10/+12 |
| | | | | Close #901 | ||||
* | Bump to next dev version number | Daniele Varrazzo | 2019-04-21 | 1 | -1/+1 |
| | |||||
* | Bumping to version 2.8.22_8_2 | Daniele Varrazzo | 2019-04-14 | 1 | -1/+1 |
| | |||||
* | Added FAQ entry about the change in binary packages in 2.8 | Daniele Varrazzo | 2019-04-14 | 2 | -12/+26 |
| | |||||
* | Merge branch 'openssl-1.1-windows' | Daniele Varrazzo | 2019-04-14 | 5 | -19/+33 |
|\ | |||||
| * | Mention building openssl 1.1 on windows in news file | Daniele Varrazzo | 2019-04-11 | 1 | -0/+7 |
| | | | | | | | | Close #836. | ||||
| * | Build and test with openssl 1.1 on windows | Daniele Varrazzo | 2019-04-11 | 4 | -19/+31 |
| | | | | | | | | Porting to openssl 1.1 by Matthew Brett, from the psycopg2-wheel repos. | ||||
* | | Mention fix to repeated fields in RealDictCursor in news file | Daniele Varrazzo | 2019-04-11 | 1 | -0/+7 |
|/ | |||||
* | Highlight in docs that the context manager doesn't close the connection | Daniele Varrazzo | 2019-04-07 | 1 | -3/+13 |
| | | | | | Code as in #889 is not robust, but the behaviour is actually counter-intuitive. | ||||
* | More robust RealDictRow population | Daniele Varrazzo | 2019-04-06 | 1 | -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 release | Daniele Varrazzo | 2019-04-06 | 1 | -1/+1 |
| | |||||
* | Fixed debug title level in news | Daniele Varrazzo | 2019-04-06 | 1 | -1/+1 |
| | |||||
* | Fixed link to RealDictRow from last news | Daniele Varrazzo | 2019-04-06 | 1 | -1/+1 |
| | |||||
* | Bumping to version 2.8.12_8_1 | Daniele Varrazzo | 2019-04-06 | 1 | -1/+1 |
| | |||||
* | Merge branch 'fix-886' | Daniele Varrazzo | 2019-04-06 | 3 | -48/+66 |
|\ |