Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#4585 closed (wontfix)

XMLField in PostgreSQL

Reported by: BleSS Owned by: Adrian Holovaty
Component: Database layer (models, ORM) Version: dev
Severity: Keywords: postgresql xmlfield
Cc: gajon@…, adurdin@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Change History (2)

comment:1 by Malcolm Tredinnick, 17 years ago

Resolution: wontfix
Status: newclosed

The xml data type only exists on certain builds of PostgreSQL and not by default. For example, Fedora 7, using PostgreSQL 8.2.4 does not have this support. We can't have conditional field types based on what the database might or might not support in the server (it's very hard to detect and non-portable).

If somebody wants to use this functionality, they can create a field subclass (in the near future) that does what they want.

comment:2 by Jonas von Poser, 17 years ago

It's true that XML data type only exists in certains builds of PostgreSQL, but it isn't hard to detect.

After of 5 min. in #postgresql channel (freenode):

\d pg_type
select * from pg_type;

http://www.postgresql.org/docs/8.2/interactive/datatype-oid.html

Note: See TracTickets for help on using tickets.
Back to Top