Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite7880e5

Browse files
committed
Update lo extension for parallel query.
The lo_oid function provided by this extension is PARALLEL SAFE.Andreas Karlsson
1 parentb79b8d8 commite7880e5

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

‎contrib/lo/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
MODULES = lo
44

55
EXTENSION = lo
6-
DATA = lo--1.0.sql lo--unpackaged--1.0.sql
6+
DATA = lo--1.1.sql lo--1.0--1.1.sql lo--unpackaged--1.0.sql
77
PGFILEDESC = "lo - management for large objects"
88

99
ifdefUSE_PGXS

‎contrib/lo/lo--1.0--1.1.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* contrib/lo/lo--1.0--1.1.sql*/
2+
3+
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
4+
\echo Use"ALTER EXTENSION lo UPDATE TO '1.1'" to load this file. \quit
5+
6+
ALTERFUNCTION lo_oid(lo) PARALLEL SAFE;

‎contrib/lo/lo--1.0.sqlrenamed to‎contrib/lo/lo--1.1.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* contrib/lo/lo--1.0.sql*/
1+
/* contrib/lo/lo--1.1.sql*/
22

33
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
44
\echo Use"CREATE EXTENSION lo" to load this file. \quit
@@ -16,7 +16,7 @@ CREATE DOMAIN lo AS pg_catalog.oid;
1616
-- the implicit casts between a domain and its underlying type handle them.
1717
--
1818
CREATEFUNCTIONlo_oid(lo) RETURNSpg_catalog.oidAS
19-
'SELECT $1::pg_catalog.oid' LANGUAGE SQL STRICT IMMUTABLE;
19+
'SELECT $1::pg_catalog.oid' LANGUAGE SQL STRICT IMMUTABLE PARALLEL SAFE;
2020

2121
-- This is used in triggers
2222
CREATEFUNCTIONlo_manage()

‎contrib/lo/lo.control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# lo extension
22
comment = 'Large Object maintenance'
3-
default_version = '1.0'
3+
default_version = '1.1'
44
module_pathname = '$libdir/lo'
55
relocatable = true

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp