summaryrefslogtreecommitdiff
path: root/doc/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo: "the the"Jon Dufresne2019-06-212-7/+7
|
* typo: remove 'a'Kunal Marwaha2019-06-191-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.
* Improve docsAlexander Kukushkin2019-05-061-0/+14
|
* Change the default value of keepalive_interval parameter to NoneAlexander Kukushkin2019-05-061-1/+4
| | | | | 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-062-39/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Added FAQ entry about the change in binary packages in 2.8Daniele Varrazzo2019-04-142-12/+26
|
* 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.
* Fixed replication cursor docs warning indentation levelDaniele Varrazzo2019-04-011-11/+9
|
* Replication objects docs header level bumped upDaniele Varrazzo2019-04-011-2/+2
| | | | Now it appears in the ToCs.
* Fixed notice about new wal_end attribute being on the cursorDaniele Varrazzo2019-04-011-2/+2
|
* Added news entry about ReplicationMessage.wal_endDaniele Varrazzo2019-03-301-0/+2
|
* Address code review feedbackgrunskis-bonial2019-03-301-1/+14
|
* Store WAL end pointer in the replication cursorMartins Grunskis2019-03-301-1/+7
|
* Add time type conversion info to docsAndrew Rabert2019-03-241-0/+23
|
* Convert `while 1:` statements to `while True:`Jon Dufresne2019-03-131-4/+4
| | | | A slightly more readable and modern syntax.
* Better link from docs to "json and jsonb" data typesDaniele Varrazzo2019-03-051-6/+7
|
* Added ConnectionInfo.dsn_parameters attributeinfo-dsn-paramsDaniele Varrazzo2019-02-172-23/+35
|
* Don't use versions such as 2.8.0 in docsDaniele Varrazzo2019-02-173-11/+11
| | | | Use 2.8.
* Copyright year updatedDaniele Varrazzo2019-02-171-1/+1
| | | | | ag -l Copyright | xargs sed -i \ "s/\(.*copyright (C) [0-9]\+\)\(-[0-9]\+\)\?\(.*\)/\1-$(date +%Y)\3/I"
* Fixed title level of sqlsate errors table in docsDaniele Varrazzo2019-02-171-1/+1
|
* Dropped text docs generationDaniele Varrazzo2019-02-171-61/+0
|
* Added table of sqlstate exceptions in the docsDaniele Varrazzo2019-02-172-4/+72
| | | | | Note that the column-spanning cells break text docs. I don't think anybody cares about them, so going to drop them.
* Added docs about pgconn_ptr, pgresult_ptrlibpq-ptrsDaniele Varrazzo2019-02-162-1/+35
|
* Improvements to errors module docserrors-module-cDaniele Varrazzo2019-02-112-7/+17
|
* Dropped PSYCOPG_DISPLAY_SIZE build parameterDaniele Varrazzo2019-01-251-4/+6
| | | | | Big and complex _pq_fetch_tuples simplified by moving per-column calculation to a separate function.
* Added documentation for BYTES casterregister-bytesDaniele Varrazzo2019-01-183-3/+37
|
* Merge pull request #828 from wbolster/patch-1Daniele Varrazzo2019-01-081-1/+1
|\ | | | | mention postgresql 11 in install docs
| * mention postgresql 11 in install docswouter bolsterlee2018-12-071-1/+1
| |
* | Merge remote-tracking branch ↵Daniele Varrazzo2018-12-271-0/+2
|\ \ | |/ |/| | | 'eternalflow/execute-values-returning-clause-support'
| * Docs wordsmith for execute_values() fetch paramDaniele Varrazzo2018-12-271-1/+1
| |
| * add versionchanged to docsIvan Kotelnikov2018-11-241-0/+2
| |
* | Dropped deprecated PersistentConnectionPoolJon Dufresne2018-12-041-8/+0
|/ | | | | | | | | This class was deprecated in 27cd6c4880161a715b1952be64cc96ebc968fa2b (Dec 2, 2012), which was first included in release 2.5. Enough time has passed for library uses to find an alternative solution. This class was untested.
* Merge branch 'master' into feature-expose-pgconnFederico Di Gregorio2018-11-0714-221/+478
|\
| * Merge branch 'connection-info'Daniele Varrazzo2018-10-153-105/+166
| |\
| | * Use the connection.info properties instead of the legacy methodsconnection-infoDaniele Varrazzo2018-10-132-4/+5
| | |
| | * Added ConnectionInfo.parameter_status()Daniele Varrazzo2018-10-132-39/+46
| | |
| | * Added ConnectionInfo.ssl_attribute()Daniele Varrazzo2018-10-131-0/+2
| | |
| | * Added all the missing ConnectionInfo attributesDaniele Varrazzo2018-10-131-0/+5
| | |
| | * Added missing class signatures in the docsDaniele Varrazzo2018-10-131-2/+2
| | |
| | * Added ConnectionInfo.error_messageDaniele Varrazzo2018-10-131-0/+1
| | |
| | * Added other members to the ConnectionInfo classDaniele Varrazzo2018-10-122-50/+87
| | | | | | | | | | | | | | | Starting deprecating softly some of the methods bloating the connection class.
| | * Added several ConnectionInfo attributesDaniele Varrazzo2018-10-121-0/+6
| | |
| | * Adding ConnectionInfo object documentationDaniele Varrazzo2018-10-122-11/+13
| | | | | | | | | | | | | | | | | | I'm still fought whether docs should be in the C module or in the .rst. I'd prefer the first because DRY, but writing multiline strings in C really sucks.
| * | Merge branch 'master' into errors-moduleerrors-moduleDaniele Varrazzo2018-10-1513-135/+264
| |\ \
| | * | errorcodes map update to PostgreSQL 11Daniele Varrazzo2018-10-141-1/+1
| | |/
| | * Added docs for the Column objectDaniele Varrazzo2018-10-112-35/+112
| | |
| | * Another url changed to httpsDaniele Varrazzo2018-10-101-1/+1
| | | | | | | | | | | | Added after this MR.
| | * Merge branch 'master' into httpsDaniele Varrazzo2018-10-104-1/+54
| | |\
| | | * Merge branch 'conn-get-host'Daniele Varrazzo2018-10-101-0/+18
| | | |\