#1051: Add support to set search_path in PostgreSQL --------------------------------------------------------+------------------- Reporter: Mao Xizeng <mao.xiz...@gmail.com> | Owner: nobody Status: closed | Milestone: Component: Database layer (models, ORM) | Version: SVN Resolution: duplicate | Keywords: PostgreSQL Schemas Stage: Design decision needed | Has_patch: 1 Needs_docs: 0 | Needs_tests: 1 Needs_better_patch: 0 | --------------------------------------------------------+------------------- Comment (by akaihola):
For anyone looking for a quick work-around, !MariusBoo [http://code.djangoproject.com/ticket/6064#comment:12 noted] that you can define your table like this: {{{ db_table = '"django"."company"' }}} This will fool the quote function to think that your table is properly quoted. This also means that you have to specify the schema for each table manually. I just verified that this solution works with r10837 and r11802 and PostgreSQL 8.3.8. -- Ticket URL: <http://code.djangoproject.com/ticket/1051#comment:17> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.