> From: Christoph Zwerschke <[email protected]> > Date: Thu, 17 Mar 2016 14:32:28 +0100
> The way I would fix this in version 4.x is as follows: > > * In get_attnames(): Do not use get_relations() any more to check if > table exists, but check this implicitly with the following select. This > will also be faster. > > * In pkey(): Remove the filter for pg_ and information_schema. > > Additionally, as a feature in 4.x+5.x, but not needed for the fix: > > * In get_relations(): Add a keyword parameter system=False. The method > will return system tables (i.e. pg_* and information_schema) only if > system=True. This would also be backwards compatible. > > Please let me know if you think this solution is ok. I will then add > tests and patches to the 4.x and trunk. +1 from me. Thanks for looking into it. -- Patrick TJ McPhee <[email protected]> _______________________________________________ PyGreSQL mailing list [email protected] https://mail.vex.net/mailman/listinfo.cgi/pygresql
