Revision 6012
Added by ben leinfelder over 13 years ago
xmltables-postgres.sql | ||
---|---|---|
64 | 64 |
docid VARCHAR(250), -- index to the document id |
65 | 65 |
date_created DATE, |
66 | 66 |
date_updated DATE, |
67 |
nodedatanumerical FLOAT8, -- the data for this node if
|
|
68 |
-- if it is a number
|
|
67 |
nodedatanumerical FLOAT8, -- the data for this node if it is a number
|
|
68 |
nodedatadate TIMESTAMP, -- the data for this node if it is a date
|
|
69 | 69 |
CONSTRAINT xml_nodes_pk PRIMARY KEY (nodeid), |
70 | 70 |
CONSTRAINT xml_nodes_root_fk |
71 | 71 |
FOREIGN KEY (rootnodeid) REFERENCES xml_nodes, |
... | ... | |
98 | 98 |
docid VARCHAR(250), -- index to the document id |
99 | 99 |
date_created DATE, |
100 | 100 |
date_updated DATE, |
101 |
nodedatanumerical FLOAT8, -- the data for this node if |
|
102 |
-- if it is a number
|
|
101 |
nodedatanumerical FLOAT8, -- the data for this node if it is a number
|
|
102 |
nodedatadate TIMESTAMP, -- the data for this node if it is a date
|
|
103 | 103 |
CONSTRAINT xml_nodes_revisions_pk PRIMARY KEY (nodeid), |
104 | 104 |
CONSTRAINT xml_nodes_revisions_root_fk |
105 | 105 |
FOREIGN KEY (rootnodeid) REFERENCES xml_nodes_revisions, |
... | ... | |
376 | 376 |
path VARCHAR(1000), -- precomputed path through tree |
377 | 377 |
nodedata TEXT, -- the data for this node (e.g., |
378 | 378 |
-- for TEXT it is the content) |
379 |
nodedatanumerical FLOAT8, -- the data for this node if |
|
380 |
-- if it is a number
|
|
379 |
nodedatanumerical FLOAT8, -- the data for this node if it is a number
|
|
380 |
nodedatadate TIMESTAMP, -- the data for this node if it is a date
|
|
381 | 381 |
parentnodeid INT8, -- id of the parent of the node represented |
382 | 382 |
-- by this row |
383 | 383 |
CONSTRAINT xml_path_index_pk PRIMARY KEY (nodeid), |
... | ... | |
392 | 392 |
CREATE INDEX xml_path_index_idx2 ON xml_path_index (nodedata); |
393 | 393 |
CREATE INDEX xml_path_index_idx3 ON xml_path_index (nodedatanumerical); |
394 | 394 |
CREATE INDEX xml_path_index_idx4 ON xml_path_index (upper(nodedata)); |
395 |
CREATE INDEX xml_path_index_idx5 ON xml_path_index (nodedatadate); |
|
395 | 396 |
|
396 | 397 |
/* |
397 | 398 |
* harvest_site_schedule -- table to store harvest sites and schedule info |
Also available in: Unified diff
add support for temporal element query in pathquery
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2084