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

Commit83e97c0

Browse files
committed
rename WITH options
1 parent0050c0a commit83e97c0

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

‎expected/altorder.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CREATE TABLE atsts (id int, t tsvector, d timestamp);
22
\copy atsts from 'data/tsts.data'
33
CREATE INDEX atsts_idx ON atsts USING rum (t rum_tsvector_timestamp_ops, d)
4-
WITH (orderby = 'd',addto = 't',use_alternative_order='t');
4+
WITH (attach = 'd',to = 't',order_by_attach='t');
55
INSERT INTO atsts VALUES (-1, 't1 t2', '2016-05-02 02:24:22.326724');
66
INSERT INTO atsts VALUES (-2, 't1 t2 t3', '2016-05-02 02:26:22.326724');
77
SELECT count(*) FROM atsts WHERE t @@ 'wr|qh';

‎expected/orderby.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CREATE TABLE tsts (id int, t tsvector, d timestamp);
22
\copy tsts from 'data/tsts.data'
33
CREATE INDEX tsts_idx ON tsts USING rum (t rum_tsvector_timestamp_ops, d)
4-
WITH (orderby = 'd',addto = 't');
4+
WITH (attach = 'd',to = 't');
55
INSERT INTO tsts VALUES (-1, 't1 t2', '2016-05-02 02:24:22.326724');
66
INSERT INTO tsts VALUES (-2, 't1 t2 t3', '2016-05-02 02:26:22.326724');
77
SELECT count(*) FROM tsts WHERE t @@ 'wr|qh';

‎rumutil.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ _PG_init(void)
5050

5151
rum_relopt_kind=add_reloption_kind();
5252

53-
add_string_reloption(rum_relopt_kind,"orderby",
54-
"Column name toorder by operation",
53+
add_string_reloption(rum_relopt_kind,"attach",
54+
"Column name toattach as additional info",
5555
NULL,NULL);
56-
add_string_reloption(rum_relopt_kind,"addto",
56+
add_string_reloption(rum_relopt_kind,"to",
5757
"Column name to add a order by column",
5858
NULL,NULL);
59-
add_bool_reloption(rum_relopt_kind,"use_alternative_order",
59+
add_bool_reloption(rum_relopt_kind,"order_by_attach",
6060
"Use (addinfo, itempointer) order instead of just itempointer",
6161
false);
6262
}
@@ -785,9 +785,9 @@ rumoptions(Datum reloptions, bool validate)
785785
intnumoptions;
786786
staticconstrelopt_parse_elttab[]= {
787787
{"fastupdate",RELOPT_TYPE_BOOL, offsetof(RumOptions,useFastUpdate)},
788-
{"orderby",RELOPT_TYPE_STRING, offsetof(RumOptions,orderByColumn)},
789-
{"addto",RELOPT_TYPE_STRING, offsetof(RumOptions,addToColumn)},
790-
{"use_alternative_order",RELOPT_TYPE_BOOL, offsetof(RumOptions,useAlternativeOrder)}
788+
{"attach",RELOPT_TYPE_STRING, offsetof(RumOptions,orderByColumn)},
789+
{"to",RELOPT_TYPE_STRING, offsetof(RumOptions,addToColumn)},
790+
{"order_by_attach",RELOPT_TYPE_BOOL, offsetof(RumOptions,useAlternativeOrder)}
791791
};
792792

793793
options=parseRelOptions(reloptions,validate,rum_relopt_kind,

‎sql/altorder.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CREATE TABLE atsts (id int, t tsvector, d timestamp);
33
\copy atstsfrom'data/tsts.data'
44

55
CREATEINDEXatsts_idxON atsts USING rum (t rum_tsvector_timestamp_ops, d)
6-
WITH (orderby='d',addto='t',use_alternative_order='t');
6+
WITH (attach='d',to='t',order_by_attach='t');
77

88

99
INSERT INTO atstsVALUES (-1,'t1 t2','2016-05-02 02:24:22.326724');

‎sql/orderby.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CREATE TABLE tsts (id int, t tsvector, d timestamp);
33
\copy tstsfrom'data/tsts.data'
44

55
CREATEINDEXtsts_idxON tsts USING rum (t rum_tsvector_timestamp_ops, d)
6-
WITH (orderby='d',addto='t');
6+
WITH (attach='d',to='t');
77

88

99
INSERT INTO tstsVALUES (-1,'t1 t2','2016-05-02 02:24:22.326724');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp