Bug 865087 - The PostgreSQL cartridge is missing postgresql-contrib
Summary: The PostgreSQL cartridge is missing postgresql-contrib
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Mrunal Patel
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-10 19:28 UTC by Jan Pazdziora
Modified: 2015-05-14 23:00 UTC (History)
3 users (show)

Fixed In Version: devenv_2319+
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-06 18:50:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Pazdziora 2012-10-10 19:28:42 UTC
Description of problem:

I try to use the dblink PostgreSQL extension but

  \i /usr/share/pgsql/contrib/dblink.sql

in psql fails -- presumably the postgresql-contrib package is not installed on the Openshift host. It should be as it adds important functionality to the PostgreSQL server.

Version-Release number of selected component (if applicable):

PostgreSQL 8.4 cartridge.

How reproducible:

Tried on one application.

Steps to Reproduce:
1. Start psql.
2. Try to define dblink in your database with

\i /usr/share/pgsql/contrib/dblink.sql
  
Actual results:

test1=# \i /usr/share/pgsql/contrib/dblink.sql
/usr/share/pgsql/contrib/dblink.sql: No such file or directory
test1=#

Expected results:

No error, dblink functions created.

Additional info:

Comment 1 Mrunal Patel 2012-10-11 19:26:04 UTC
Fixed with https://github.com/openshift/origin-server/pull/656

Comment 2 Jianwei Hou 2012-10-15 02:27:18 UTC
Verified on devenv_2327

Steps:
1. Create app and embed postgresql
2. SSH into app and start psql
3. Try to define dblink in database

Result:
Dblink functions created without error.

php1=# \i /usr/share/pgsql/contrib/dblink.sql
SET
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
REVOKE
REVOKE
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE TYPE
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION


Note You need to log in before you can comment on or make changes to this bug.