1 / 9

PostgreSQL plugin for SSB

PostgreSQL plugin for SSB. Robert Vežnaver IT/SDC 25 th April 2014. architecture. siteview. Oracle Context. cx_Oracle. ideal solution. siteview. PostgreSQL Context. psycopg2. Oracle SQL. psycopg2. “false friends”. DECODE NVL ROWNUM SET TIME_ZONE SYS_EXTRACT_* SYSDATE.

keona
Download Presentation

PostgreSQL plugin for SSB

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PostgreSQL plugin for SSB Robert Vežnaver IT/SDC 25th April 2014

  2. architecture • siteview • Oracle Context • cx_Oracle PostgreSQL plugin for SSB

  3. ideal solution • siteview • PostgreSQL Context • psycopg2 PostgreSQL plugin for SSB

  4. Oracle SQL • psycopg2 “false friends” DECODE NVL ROWNUM SET TIME_ZONE SYS_EXTRACT_* SYSDATE translator Oracle SQL variable binding :var %(var)s PostgreSQL plugin for SSB

  5. PL/SQL procedures • psycopg2 translator PL/pgSQL Oracle SQL PL/SQL callproc() PostgreSQL plugin for SSB

  6. Bypassing context • psycopg2 translator PL/pgSQL cursor() Oracle SQL PL/SQL callproc() PostgreSQL plugin for SSB

  7. Code consistency • psycopg2 • http/siteview translator PL/pgSQL cursor() Oracle SQL PL/SQL callproc() PostgreSQL plugin for SSB

  8. Case sensitivity Oracle returns UPPERCASE,PgSQL returns lowercase Most columns in Oracle are CamelCase, but not all! Reserved SQL words used as names! Other modules get key/value list directly, therefore JavaScript code depends on case! Monitoring of Grid Operations - S. Roiser

  9. Proposed solution • Create style guidelines document • Rewrite SQL to ANSI • Remove PL/SQL procedures • Case sensitivity • use PostgreSQL with “CamelCase”, modify cursor for uppercase • make everything go through context mapper Monitoring of Grid Operations - S. Roiser

More Related