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

Commit112d411

Browse files
committed
Remove deprecated containment operators for contrib types.
Since PG 8.2, @ and ~ have been deprecated aliases for the containmentoperators @> and <@. It seems like enough time has passed to actuallyremove them, so do so.This completes the project begun in commit2f70fdb. Note that inthe core types, the relation to the preferred operator names wasreversed from what it is in these contrib modules. The confusionthat induced was a large part of the reason for deprecation.Justin PryzbyDiscussion:https://postgr.es/m/20201027032511.GF9241@telsasoft.com
1 parent8a8f4d8 commit112d411

File tree

14 files changed

+34
-40
lines changed

14 files changed

+34
-40
lines changed

‎contrib/cube/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ OBJS = \
77
cubeparse.o
88

99
EXTENSION = cube
10-
DATA = cube--1.2.sql cube--1.2--1.3.sql cube--1.3--1.4.sql\
10+
DATA = cube--1.2.sql cube--1.2--1.3.sql cube--1.3--1.4.sqlcube--1.4--1.5.sql\
1111
cube--1.1--1.2.sql cube--1.0--1.1.sql
1212
PGFILEDESC = "cube - multidimensional cube data type"
1313

‎contrib/cube/cube--1.4--1.5.sql‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* contrib/cube/cube--1.4--1.5.sql*/
2+
3+
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
4+
\echo Use"ALTER EXTENSION cube UPDATE TO '1.5'" to load this file. \quit
5+
6+
-- Remove @ and ~
7+
DROPOPERATOR @ (cube, cube);
8+
DROPOPERATOR ~ (cube, cube);

‎contrib/cube/cube.control‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cube extension
22
comment = 'data type for multidimensional cubes'
3-
default_version = '1.4'
3+
default_version = '1.5'
44
module_pathname = '$libdir/cube'
55
relocatable = true
66
trusted = true

‎contrib/hstore/hstore--1.7--1.8.sql‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;
1111
ALTERTYPE hstoreSET (
1212
SUBSCRIPT= hstore_subscript_handler
1313
);
14+
15+
-- Remove @ and ~
16+
DROPOPERATOR @ (hstore, hstore);
17+
DROPOPERATOR ~ (hstore, hstore);

‎contrib/intarray/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ OBJS = \
1212
_intbig_gist.o
1313

1414
EXTENSION = intarray
15-
DATA = intarray--1.3--1.4.sql intarray--1.2--1.3.sql\
15+
DATA = intarray--1.4--1.5.sql intarray--1.3--1.4.sql intarray--1.2--1.3.sql\
1616
intarray--1.2.sql intarray--1.1--1.2.sql\
1717
intarray--1.0--1.1.sql
1818
PGFILEDESC = "intarray - functions and operators for arrays of integers"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* contrib/intarray/intarray--1.4--1.5.sql*/
2+
3+
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
4+
\echo Use"ALTER EXTENSION intarray UPDATE TO '1.5'" to load this file. \quit
5+
6+
-- Remove @ and ~
7+
DROPOPERATOR @ (_int4, _int4);
8+
DROPOPERATOR ~ (_int4, _int4);

‎contrib/intarray/intarray.control‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# intarray extension
22
comment = 'functions, operators, and index support for 1-D arrays of integers'
3-
default_version = '1.4'
3+
default_version = '1.5'
44
module_pathname = '$libdir/_int'
55
relocatable = true
66
trusted = true

‎contrib/seg/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ OBJS = \
77
segparse.o
88

99
EXTENSION = seg
10-
DATA = seg--1.1.sql seg--1.1--1.2.sql seg--1.2--1.3.sql\
10+
DATA = seg--1.1.sql seg--1.1--1.2.sql seg--1.2--1.3.sqlseg--1.3--1.4.sql\
1111
seg--1.0--1.1.sql
1212
PGFILEDESC = "seg - line segment data type"
1313

‎contrib/seg/seg--1.3--1.4.sql‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* contrib/seg/seg--1.3--1.4.sql*/
2+
3+
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
4+
\echo Use"ALTER EXTENSION seg UPDATE TO '1.4'" to load this file. \quit
5+
6+
-- Remove @ and ~
7+
DROPOPERATOR @ (seg, seg);
8+
DROPOPERATOR ~ (seg, seg);

‎contrib/seg/seg.control‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# seg extension
22
comment = 'data type for representing line segments or floating-point intervals'
3-
default_version = '1.3'
3+
default_version = '1.4'
44
module_pathname = '$libdir/seg'
55
relocatable = true
66
trusted = true

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp