summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * RealDictRow inherits from OrderedDictfix-886Daniele Varrazzo2019-04-063-56/+47
| | | | | | | | | | | | | | | | Now its state is unmodified, so apart from special-casing creation and initial population can work unmodified, and all the desired properties just work (modifiability, picklability...) Close #886.
| * Fixed RealDictCursor.pop()Daniele Varrazzo2019-04-063-0/+27
|/ | | | Addresses #886, but there might be something else broken there.
* Merge branch 'fix-887'Daniele Varrazzo2019-04-064-8/+34
|\
| * Test notifies are received ok polling an async curfix-887Daniele Varrazzo2019-04-051-1/+22
| |
| * Handle ok poll() without a cursor having executed queriesDaniele Varrazzo2019-04-053-7/+12
| | | | | | | | Close #887
| * Bump to next dev releaseDaniele Varrazzo2019-04-051-1/+1
|/
* Bumping to 2.8 for release2_8Daniele Varrazzo2019-04-031-1/+1
|
* 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-012-3/+3
|
* Merge branch 'keepalive-save-wal-end'Daniele Varrazzo2019-03-306-1/+46
|\ | | | | | | Close #800
| * Added news entry about ReplicationMessage.wal_endDaniele Varrazzo2019-03-302-0/+4
| |
| * Address code review feedbackgrunskis-bonial2019-03-303-4/+18
| |
| * Store WAL end pointer in the replication cursorMartins Grunskis2019-03-305-2/+29
|/
* Add time type conversion info to docsAndrew Rabert2019-03-241-0/+23
|
* Allow tests to be ignored if dynamic binding failed2_8_BETA_2Daniele Varrazzo2019-03-182-14/+23
|
* Version number changed to release version 2.8 beta 2 packagesDaniele Varrazzo2019-03-181-1/+1
|
* Merge branch 'naming'Daniele Varrazzo2019-03-1834-305/+302
|\
| * Windows doesn't like the name "connect" for a functionDaniele Varrazzo2019-03-171-5/+5
| |
| * Prefix 'psycopg_' changed to 'psyco_'namingDaniele Varrazzo2019-03-1722-76/+76
| |
| * Several function names shortenedDaniele Varrazzo2019-03-1718-234/+231
| | | | | | | | | | | | There's not so much need for a strict convention for static functions. Leaving some 'psyco_' prefix when the internal function and the python-exposed function clashed.
* | Merge branch 'fix-829'Daniele Varrazzo2019-03-185-10/+83
|\ \
| * | Mention closed #829 in NEWS fileDaniele Varrazzo2019-03-181-4/+9
| | |
| * | Don't close connections from forked processesDaniele Varrazzo2019-03-183-3/+28
| | | | | | | | | | | | | | | | | | | | | On Py3 subprocessing will actually GC the objects and the FD is open, resulting in connections closed in different processes. The behaviour is verified in py 3.4 to 3.7 at least,
| * | subprocess test function moved into a moduleDaniele Varrazzo2019-03-171-11/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It won't work on windows if it's in the script: failing with errors such as: AttributeError: 'module' object has no attribute 'process' or: Can't get attribute 'process' on <module '__main__' (built-in)>
| * | Added test to reproduce ticket #829Daniele Varrazzo2019-03-171-0/+28
| | | | | | | | | | | | | | | Unrelated processes close the FD of the connection. This happens in Python 3.6 but not 2.7. Let's see if travis shows where else it fails...
* | | Allow incorrect result for pgconn_ptr test on OSXDaniele Varrazzo2019-03-181-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | I don't know why it returns 0 instead of the right value. At least it doesn't segfault, so don't skip the test altogether. The test is unrelated to this branch: will cherry-pick elsewhere (if I remember it...)
* | | Run tests on windows using the same library versions of the packagesDaniele Varrazzo2019-03-182-5/+4
| | |
* | | Appveyor tests in order of sort what I careDaniele Varrazzo2019-03-181-6/+6
|/ /
* | Allow 0 as key in the poolDaniele Varrazzo2019-03-171-3/+3
| | | | | | | | Close #848
* | Merge branch 'use-conn-pgres'Daniele Varrazzo2019-03-178-321/+196
|\ \ | |/
| * Dropped whole "critical" storyDaniele Varrazzo2019-03-173-93/+1
| | | | | | | | | | It doesn't seem "critical" errors are used anymore. pq_set_critical() wasn't called anywhere.
| * Use the error on the connection instead of passing it explicitly aroundDaniele Varrazzo2019-03-176-132/+105
| |
| * Added helper methods to set a result into a connection/cursorDaniele Varrazzo2019-03-175-20/+32
| |
| * Dropped pgconn argument from conn_setup()Daniele Varrazzo2019-03-173-17/+16
| |
| * Use the connection's PGresult to pass results through callsDaniele Varrazzo2019-03-174-132/+113
| |
| * Fixed handling of internal query too largeDaniele Varrazzo2019-03-171-0/+2
|/
* Merge branch 'fix-856'Daniele Varrazzo2019-03-1720-183/+219
|\
| * Make sure to free the connection's pgres on deletefix-856Daniele Varrazzo2019-03-171-0/+1
| |
| * Added pq_get_result_async() replaced pg_get_last_result()Daniele Varrazzo2019-03-179-69/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The new function keeps together PQconsumeInput() with PQisBusy(), in order to handle the condition in which not all the results of a sequence of statements arrive in the same roundtrip. Added pointer to a PGresult to the connection to keep the state across async communication: it can probably be used to simplify other code paths where a result is brought forward manually. Close #802 Close #855 Close #856
| * Retrieving the async cursor moved out of conn_poll() bodyDaniele Varrazzo2019-03-161-18/+39
| |
| * Simplified interactions between asyc functionsDaniele Varrazzo2019-03-161-5/+14
| | | | | | | | | | | | | | | | | | Have advance_write calling flush itself, advance_read calling is_busy itself, rather than calling them in the caller and passing the result. Why we were doing the former on write I don't know. On read the paths between async and green function was different but they got unified in the previous commit.
| * Dropped locking version of pq_is_busy()Daniele Varrazzo2019-03-163-55/+4
| | | | | | | | | | | | | | | | | | | | The locking version was used for sync connections, the non-locking one for green ones. However it only calls non-blocking functions, so it doesn't really matter releasing the gil. So have only the non-locking one. Note that the name are sort of swapped: pq_is_busy() does now what pq_is_busy_locked() used to do.
| * Dropped no_begin handling in async executeDaniele Varrazzo2019-03-161-13/+2
| | | | | | | | | | no_begin is only used with withhold named cursors, and it's not possible to create named cursors on async connections.
| * Dropped debug info for microprotocols/adapters initializationDaniele Varrazzo2019-03-169-33/+2
| | | | | | | | | | Not useful anymore (guess they were when those layers were created). Much shorter stream of messages on module init now.
| * Shorter timeout in the async tests selectDaniele Varrazzo2019-03-161-2/+2
|/
* Merge branch 'version-check-cleanup'Daniele Varrazzo2019-03-1625-141/+119
|\
| * Py2/3 compatibility macro definitions rationalizedDaniele Varrazzo2019-03-162-36/+32
| |
| * Fixed check for type == int on Py2Daniele Varrazzo2019-03-161-1/+1
| |
| * Added PY_2, PY_3 macros and used uniformlyDaniele Varrazzo2019-03-1613-35/+38
| |