Skip to content

Commit 5301b41

Browse files
committed
Ensures plpythonu from postgres/greenplum drivers
1 parent 0754667 commit 5301b41

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

database/db-driver/greenplum/db-assign_sequential_id

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ set -euo pipefail
1111
TABLE_CSV=$1 IdColumn=$2 PartColumn=${3:-0}
1212

1313
# http://gpdb.docs.pivotal.io/4390/ref_guide/extensions/pl_python.html
14+
db-supports_pg_lang "plpythonu"
15+
1416
SQL="
1517
CREATE OR REPLACE FUNCTION seqassign(partid INT, reset BOOL, pids INT[], offsets BIGINT[])
1618
RETURNS BIGINT AS \$\$

database/db-driver/postgresql/db-assign_sequential_id

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ set -euo pipefail
1010

1111
TABLE_CSV=$1 IdColumn=$2 PartColumn=${3:-0}
1212

13+
db-supports_pg_lang "plpythonu"
1314

1415
SQL="
1516
CREATE OR REPLACE FUNCTION seqassign(partid INT, reset BOOL)

0 commit comments

Comments
 (0)