Top Banner
IT-SDC : Support for Distributed Computing PostgreSQL plugin for SSB Robert Vežnaver IT/SDC 25 th April 2014
9

PostgreSQL plugin for SSB

Feb 23, 2016

Download

Documents

keona

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. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: PostgreSQL  plugin  for SSB

IT-SDC : Support for Distributed Computing

PostgreSQL plugin for SSB

Robert VežnaverIT/SDC

25th April 2014

Page 2: PostgreSQL  plugin  for SSB

2IT-SDC

architecture

25th April 2014PostgreSQL plugin for SSB

siteview

Oracle Context

cx_Oracle

Page 3: PostgreSQL  plugin  for SSB

3IT-SDC

ideal solution

25th April 2014PostgreSQL plugin for SSB

siteview

PostgreSQL Context

psycopg2

Page 4: PostgreSQL  plugin  for SSB

4IT-SDC

Oracle SQL

25th April 2014PostgreSQL plugin for SSB

psycopg2

Oracle SQL

translator

DECODENVLROWNUMSET TIME_ZONESYS_EXTRACT_*SYSDATE

variable binding:var %(var)s

“false friends”

Page 5: PostgreSQL  plugin  for SSB

5IT-SDC

PL/SQL procedures

25th April 2014PostgreSQL plugin for SSB

psycopg2

Oracle SQL PL/SQL

PL/pgSQLtranslator

callproc()

Page 6: PostgreSQL  plugin  for SSB

6IT-SDC

Bypassing context

25th April 2014PostgreSQL plugin for SSB

psycopg2

Oracle SQL PL/SQL

PL/pgSQLtranslator

cursor()callproc()

Page 7: PostgreSQL  plugin  for SSB

7IT-SDC

Code consistency

25th April 2014PostgreSQL plugin for SSB

psycopg2

Oracle SQL PL/SQL

PL/pgSQLtranslator

cursor()callproc()

http/siteview

Page 8: PostgreSQL  plugin  for SSB

Monitoring of Grid Operations - S. Roiser 8IT-SDC

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!

21 May 2013

Page 9: PostgreSQL  plugin  for SSB

Monitoring of Grid Operations - S. Roiser 9IT-SDC

Proposed solution

21 May 2013

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