summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fixed sql.Composed representationDaniele Varrazzo2017-01-011-1/+1
| |
* | Fixed sql stuff in Py3Daniele Varrazzo2017-01-011-9/+15
| |
* | Added sql.compose() implementationDaniele Varrazzo2017-01-011-2/+98
| |
* | Added basic sql module implementationDaniele Varrazzo2017-01-011-0/+174
| |
* | Adding some boilerplate for the new moduleDaniele Varrazzo2017-01-011-0/+25
|/
* Don't try to write bytes in the LoggingConnection fileDaniele Varrazzo2016-12-291-0/+2
| | | | Close #483
* Fix "invalid escape sequence" warning in Python 3.6Tim Graham2016-12-251-1/+1
| | | | http://bugs.python.org/issue27364
* Added ipaddress objects conversionDaniele Varrazzo2016-10-112-0/+93
| | | | Close #387
* inet adapters deprecatedDaniele Varrazzo2016-10-111-0/+5
| | | | Close #343
* Python source cleanup using flake8Daniele Varrazzo2016-10-119-139/+187
|
* Dropped use of b() "macro" and 2to3 fixerDaniele Varrazzo2016-08-153-27/+17
| | | | Just use the b"" strings syntax supported from python 2.6.
* Merge branch 'replication-protocol'Daniele Varrazzo2016-08-141-1/+122
|\
| * Merge branch 'master' into replication-protocolDaniele Varrazzo2016-08-071-0/+4
| |\ | | | | | | | | | | | | Conflicts: tests/testconfig.py
| * | Move replication-related imports to extras.pyOleksandr Shulgin2016-03-082-6/+4
| | |
| * | Use python-defined make_dsn() for ReplicationConnection classOleksandr Shulgin2016-03-082-14/+3
| | |
| * | Merge branch 'master' into feature/replication-protocol-c-connection-objectOleksandr Shulgin2016-03-044-13/+73
| |\ \
| * | | Move replication connection to C level.Oleksandr Shulgin2015-10-272-47/+13
| | | |
| * | | Merge branch 'feature/connect2' into feature/replication-protocolOleksandr Shulgin2015-10-272-48/+4
| |\ \ \
| | * | | Rework psycopg2.connect() interface.Oleksandr Shulgin2015-10-272-48/+4
| | | | |
| * | | | Move the `decode` parameter to `start_replication()`.Oleksandr Shulgin2015-10-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | It makes more sense this way, because otherwise it must be passed to every call of `read_message()`.
| * | | | Add quick start to the replication doc, minor doc fixes.Oleksandr Shulgin2015-10-201-1/+1
| | | | |
| * | | | Properly subclass ReplicationCursor on C level.Oleksandr Shulgin2015-10-192-7/+5
| | | | |
| * | | | Replace stop_replication with requirement for an exception.Oleksandr Shulgin2015-10-191-0/+12
| | | | |
| * | | | Fix async replication and test.Oleksandr Shulgin2015-10-151-3/+4
| | | | |
| * | | | Use quote_ident from psycopg2.extensionsOleksandr Shulgin2015-10-151-11/+7
| | | | |
| * | | | Merge branch 'master' into feature/replication-protocolOleksandr Shulgin2015-10-153-12/+17
| |\ \ \ \ | | |/ / /
| * | | | Remove IDENTIFY_SYSTEM wrapper method (it can't work with async anyway).Oleksandr Shulgin2015-10-131-8/+1
| | | | |
| * | | | Rework replication connection/cursor classesOleksandr Shulgin2015-10-011-5/+4
| | | | |
| * | | | Use parse_dsn in ReplicationConnectionBaseOleksandr Shulgin2015-10-011-15/+10
| | | | |
| * | | | Update replication connection/cursor interface and docs.Oleksandr Shulgin2015-10-011-47/+74
| | | | |
| * | | | Cleanup start replication wrt. slot type a bit.Oleksandr Shulgin2015-10-011-25/+26
| | | | |
| * | | | Merge remote-tracking branch 'origin/master' into replOleksandr Shulgin2015-10-011-1/+2
| |\ \ \ \
| * \ \ \ \ Merge remote-tracking branch 'zalando/feature/replication-protocol' into ↵Oleksandr Shulgin2015-06-302-2/+2
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | feature/replication-protocol
| | * \ \ \ \ Merge branch 'master' into feature/replication-message-objectOleksandr Shulgin2015-06-302-2/+2
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: lib/extensions.py
| * | | | | | | Rework replication protocolOleksandr Shulgin2015-06-301-17/+19
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change exposes lower level functions for operating the (logical) replication protocol, while keeping the high-level start_replication function that does all the job for you in case of a synchronous connection. A number of other changes and fixes are put into this commit.
| * | | | | | Expose ReplicationMessage type in extrasOleksandr Shulgin2015-06-112-3/+4
| | | | | | |
| * | | | | | Fix logical decoding plugin options adaptation on python3Oleksandr Shulgin2015-06-101-1/+1
| | | | | | |
| * | | | | | Add ReplicationMessage objectOleksandr Shulgin2015-06-051-0/+4
| | | | | | |
| * | | | | | Improve identify_system: don't hardcode column namesOleksandr Shulgin2015-06-021-1/+1
| | | | | | |
| * | | | | | Add support for streaming replication protocolOleksandr Shulgin2015-06-011-0/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce ReplicationConnection and ReplicationCursor classes, that incapsulate initiation of special type of PostgreSQL connection and handling of special replication commands only available in this special connection mode. The handling of stream of replication data from the server is modelled largely after the existing support for "COPY table TO file" command and pg_recvlogical tool supplied with PostgreSQL (though, it can also be used for physical replication.)
* | | | | | | Make Range pickleableJonathan Ross Rogers2016-08-071-0/+11
| |_|_|_|_|/ |/| | | | |
* | | | | | errorcodes map updated to PostgreSQL 9.5.Daniele Varrazzo2016-07-011-0/+4
| |_|_|_|/ |/| | | |
* | | | | Allow make_dsn to take no parameterDaniele Varrazzo2016-03-032-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | The behaviour of connect() is unchanged: either dsn or params must be specified.
* | | | | Validate output result from make_dsn()Daniele Varrazzo2016-03-031-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | The output is not necessarily munged anyway: if no keyword is passed, validate the input but return it untouched.
* | | | | Added docs about make_dsnDaniele Varrazzo2016-03-031-2/+2
| | | | | | | | | | | | | | | | | | | | connect() docs updated to document the arguments merging.
* | | | | Verify that the dsn is not manipulated by make_dsn if not necessaryDaniele Varrazzo2016-03-032-3/+7
| | | | |
* | | | | Implementation of make_dsn in PythonDaniele Varrazzo2016-03-032-50/+48
| | | | | | | | | | | | | | | | | | | | | | | | | This is equivalent to what proposed in #363, but with a much simpler implementation.
* | | | | Merge pull request #375 from kwotuveang3k4bk/patch-1Federico Di Gregorio2016-01-311-1/+1
|\ \ \ \ \ | | | | | | | | | | | | Update psycopg1.py
| * | | | | Update psycopg1.pyJan Janßen2015-11-101-1/+1
| | |_|_|/ | |/| | |
* | | | | Fixed race condition on import in errorcodes.lookupDaniele Varrazzo2015-12-161-2/+8
|/ / / / | | | | | | | | | | | | Fixes #382.