summaryrefslogtreecommitdiff
path: root/python/skytools/dbstruct.py
AgeCommit message (Collapse)Author
2014-02-04quote sequence namesAndrew Sackville-West
fixes a bug where _load_elem fails on sequences in schemas that start with non-alpha characters.
2013-09-18Get rid of dictfetch*() usage, it's obsolete.Marko Kreen
2012-05-24skytools.dbstruct: better rule name redirectionMarko Kreen
Old code did not handle WHERE, nor repeated table references in rule.
2011-12-30dbstruct: support grants 'WITH GRANT OPTION'Marko Kreen
2011-12-29dbstruct: sync acl list with 9.2 gitMarko Kreen
2011-11-18dbstruct.rx_replace: report all input in exception.Marko Kreen
This helps to debug failures.
2011-06-16fix: table rules are incorrect after londiste3 table (re)syncEgon Valdmees
2011-04-06Avoid direct symbol importsMarko Kreen
Always use import skytools def xx(): skytools.foo this allows maximum laziness when importing.
2011-02-11dbstruct: GP dist key supportEgon Valdmees
2010-12-08dbstruct: use new acl parserMarko Kreen
2010-12-06dbstruct: slightly more readable SQL outputMarko Kreen
2010-11-26dbstruct: separate handling for column DEFAULTsMarko Kreen
2010-11-02dbstruct: use adbin instead of adsrc when detecting defaultMarko Kreen
2010-10-19dbsctruct: fix reorgMarko Kreen
2010-10-12Use different SQL for trigger detection on Postgres 9.0Marko Kreen
2010-07-20dbstruct: save & restore clustering infoMarko Kreen
Original patch by André Malo, applied with minor modifications
2009-11-03dbstruct: Remove ONLY from ADD CONSTRAINT.Marko Kreen
Parent table cannot have contraints that the childs do not have.
2009-10-14londiste: make copy unlink inherited table from it's parentsMarko Kreen
Otherwise we cannot drop constraints. Unlink from childs is not needed, so they are left as-is. Patch by Hannu Krosing
2009-02-13python/skytools updateMarko Kreen
- docstrings - some preliminary python 3.0 compat (var names, print()) - sync with 2.1-stable adminscript: - move exec_cmd function to dbscript dbstruct: - support sequnces. SERIAL columns are not automatically created, but the link beteween column and sequence is. psycopgwrapper: - drop support for psycopg1 - beginnings of quick DB-API / DictRow description. quoting: - new unquote_fqident() function, reverse of quote_fqident() - quote_statement() accepts both row and dict dbscript: - catch startup errors - use log.exception for exceptions, will result in nicer logs sqltools: - exists_sequence() _pyquoting: - fix typo in variable name
2009-01-08skytools.dbstruct: import quoting from 2.2 branchMarko Kreen
2008-04-03import fixesMarko Kreen
2007-08-12Support for automatic handling of fkeys.Marko Kreen
By Eric Jones, plus some hacking by me.
2007-07-16skytools: support for psycopg2Marko Kreen
2007-03-13final public releaseskytools_2_1Marko Kreen