This document provides information about PostgreSQL and Command Prompt Inc. It discusses that Command Prompt offers professional services for migrating from Oracle to PostgreSQL. It then covers aspects of PostgreSQL like its licensing, large international community, low costs, mature codebase, enterprise features, and technical capabilities like its SQL implementation, replication, foreign data wrappers and user-defined functions. It also notes tools that can help ease migration from Oracle and some differences from Oracle.
15. Command Prompt, Inc.
http://www.commandprompt.com/
@cmdpromptinc
Solid SQL Implementation
No current version of any database management
system claims full conformance to Core SQL:2011.
PostgreSQL supports most of the major features of
SQL:2011. Out of 179 mandatory features required for
full Core conformance, PostgreSQL conforms to at
least 160. In addition, there is a long list of supported
optional features.
19. Command Prompt, Inc.
http://www.commandprompt.com/
@cmdpromptinc
It’s free. No licensing audits
● Oracle has spawned an entire industry to
defend against the possibility of an audit.
● PostgreSQL has spawned an entire industry
letting businesses and developers use a
database.
28. Command Prompt, Inc.
http://www.commandprompt.com/
@cmdpromptinc
Two Phase Commit
● Intended use by external transaction managers
– XA implementation via JDBC driver
● Can be used via SQL
● Review: max_prepared_transactions
configuration parameter
● Always clean up, will interfere with maintenance
32. Command Prompt, Inc.
http://www.commandprompt.com/
@cmdpromptinc
Of note
● Use TEXT for CLOB, BYTEA (or lo) for BLOB
● NULL is different:
postgres=# create table bar(a text);
CREATE TABLE
postgres=# insert into bar values('');
postgres=# select * from bar where a IS NULL;
a
---
(0 rows)
postgres=# insert into bar values(NULL);
postgres=# select * from bar where a IS NULL;
a
---
(1 row)
● PostgreSQL has a boolean data type.
35. Command Prompt, Inc.
http://www.commandprompt.com/
@cmdpromptinc
Tools for easing migration
● Ora2pg
– Complete migration toolkit
● Orafce
– Implements compatibility layers that are 10g
compatible including but not limited to:
● Oracle date functions
● Oracle.date data type
● Oracle data operators etc...