An Injection with Tree Awareness: Adding Staircase Join to PostgreSQL

Sabine Mayer, Torsten Grust, Maurice van Keulen, Jens Teubner

Research output: Chapter in Book/Report/Conference proceedingConference contributionAcademicpeer-review

34 Downloads (Pure)

Abstract

The syntactic wellformedness constraints of XML (opening and closing tags nest properly) imply that XML processors face the challenge to efficiently handle data that takes the shape of ordered, unranked trees. Although RDBMSs have originally been designed to manage table-shaped data, we propose their use as XML and XPath processors. In our setup, the database system employs a relational XML document encoding, the XPath accelerator [1], which maps information about the XML node hierarchy to a table, thus making it possible to evaluate XPath expressions on SQL hosts. Conventional RDBMSs, nevertheless, remain ignorant of many interesting properties of the encoded tree data, and were thus found to make no or poor use of these properties. This is why we devised a new join algorithm, staircase join [2], which incorporates the tree-specific knowledge required for an efficient SQL-based evaluation of XPath expressions. In a sense, this demonstration delivers the promise we have made at VLDB 2003 [2]: a notion of tree awareness can be injected into a conventional disk-based RDBMS kernel in terms of staircase join. The demonstration features a side-by-side comparison of both, an original and a staircase-join enhanced instance of PostgreSQL [4]. The required changes to PostgreSQL were local, the achieved eect, however, is significant: the demonstration proves that this injection of tree awareness turns PostgreSQL into a high-performance XML processor that closely adheres to the XPath semantics.
Original languageEnglish
Title of host publicationVLDB '04
Subtitle of host publicationroceedings of the Thirtieth International Conference on Very Large Data Bases
EditorsMario A. Nascimento
PublisherACM Press
Pages1305-1308
Number of pages4
ISBN (Print)978-0-12-088469-8
Publication statusPublished - Sep 2004

Keywords

  • DB-PRJPF: PATHFINDER
  • DB-XMLDB: XML DATABASES

Fingerprint Dive into the research topics of 'An Injection with Tree Awareness: Adding Staircase Join to PostgreSQL'. Together they form a unique fingerprint.

Cite this