--
Ticket URL: <https://code.djangoproject.com/ticket/16376>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_docs: => 0
* needs_better_patch: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted
Comment:
See #6148 for a vaguely related ticket. Based on the documentation
provided, it also seems like there's crossover here with the feature
request for cross-database joins (documented as not being supported in
#13216)
As for the API approach, I'm not wild about the idea of adding a Meta
option for an Oracle-specific feature. It feels to me like there should be
some way to tie this to routing and the underlying database definition
(i.e., the link is a feature of the database connection, not of the table
itself)
--
Ticket URL: <https://code.djangoproject.com/ticket/16376#comment:1>
* keywords: oracle => oracle postgres
Comment:
After few researches, it appears this function is not only Oracle-
specific, but exists also in Postgresql (see
[http://www.postgresql.org/docs/current/static/contrib-dblink.html
Postgresql documentation]) -- and maybe more databases ?
However, with Postgres, the approach is slightly different, because it has
to encapsulate the query using ''dblink'' function, eg.
{{{
select * from dblink('dbname=MY_DBLINK', 'select count(*) from
"MY_TABLE"')
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/16376#comment:2>
* cc: ian.g.kelly@… (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/16376#comment:3>
* cc: diegobz (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/16376#comment:4>
* cc: anssi.kaariainen@… (added)
Comment:
I am currently working on #6148, and I think this could be relatively easy
to support if the #6148 work gets completed. Just another syntax for the
FROM entry.
If this gets implemented, db_link should imply managed = False.
--
Ticket URL: <https://code.djangoproject.com/ticket/16376#comment:5>
* version: 1.3 => master
--
Ticket URL: <https://code.djangoproject.com/ticket/16376#comment:6>