mirror of https://github.com/citusdata/citus.git
Fix some typos in comments
parent
551a7d1383
commit
d153c2de0d
|
@ -1259,7 +1259,7 @@ ExpandCitusSupportedTypes(ObjectAddressCollector *collector, ObjectAddress targe
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Tables could have indexes. Indexes themself could have dependencies that
|
* Tables could have indexes. Indexes themself could have dependencies that
|
||||||
* need to be propagated. eg. TEXT SEARCH CONFIGRUATIONS. Here we add the
|
* need to be propagated. eg. TEXT SEARCH CONFIGURATIONS. Here we add the
|
||||||
* addresses of all indices to the list of objects to vist, as to make sure we
|
* addresses of all indices to the list of objects to vist, as to make sure we
|
||||||
* create all objects required by the indices before we create the table
|
* create all objects required by the indices before we create the table
|
||||||
* including indices.
|
* including indices.
|
||||||
|
|
|
@ -245,7 +245,7 @@ InitializeTransactionManagement(void)
|
||||||
* transaction independent connection management.
|
* transaction independent connection management.
|
||||||
*
|
*
|
||||||
* NB: There should only ever be a single transaction callback in citus, the
|
* NB: There should only ever be a single transaction callback in citus, the
|
||||||
* ordering between the callbacks and thee actions within those callbacks
|
* ordering between the callbacks and the actions within those callbacks
|
||||||
* otherwise becomes too undeterministic / hard to reason about.
|
* otherwise becomes too undeterministic / hard to reason about.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -65,7 +65,7 @@ ORDER BY 1,2,3;
|
||||||
(18 rows)
|
(18 rows)
|
||||||
|
|
||||||
-- check the constraint names on the worker node
|
-- check the constraint names on the worker node
|
||||||
-- verify that check constraınts do not have a shardId suffix
|
-- verify that check constraints do not have a shardId suffix
|
||||||
\c - - - :worker_1_port
|
\c - - - :worker_1_port
|
||||||
SELECT relname, conname, pg_catalog.pg_get_constraintdef(con.oid, true)
|
SELECT relname, conname, pg_catalog.pg_get_constraintdef(con.oid, true)
|
||||||
FROM pg_constraint con JOIN pg_class rel ON (rel.oid=con.conrelid)
|
FROM pg_constraint con JOIN pg_class rel ON (rel.oid=con.conrelid)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
CREATE SCHEMA text_search;
|
CREATE SCHEMA text_search;
|
||||||
CREATE SCHEMA text_search2;
|
CREATE SCHEMA text_search2;
|
||||||
SET search_path TO text_search;
|
SET search_path TO text_search;
|
||||||
-- create a new configruation from scratch
|
-- create a new configuration from scratch
|
||||||
CREATE TEXT SEARCH CONFIGURATION my_text_search_config ( parser = default );
|
CREATE TEXT SEARCH CONFIGURATION my_text_search_config ( parser = default );
|
||||||
CREATE TABLE t1(id int, name text);
|
CREATE TABLE t1(id int, name text);
|
||||||
CREATE INDEX t1_search_name ON t1 USING gin (to_tsvector('text_search.my_text_search_config'::regconfig, (COALESCE(name, ''::character varying))::text));
|
CREATE INDEX t1_search_name ON t1 USING gin (to_tsvector('text_search.my_text_search_config'::regconfig, (COALESCE(name, ''::character varying))::text));
|
||||||
|
@ -150,14 +150,14 @@ $$) ORDER BY 1,2;
|
||||||
ALTER TEXT SEARCH CONFIGURATION french_noaccent DROP MAPPING IF EXISTS FOR asciihword;
|
ALTER TEXT SEARCH CONFIGURATION french_noaccent DROP MAPPING IF EXISTS FOR asciihword;
|
||||||
NOTICE: mapping for token type "asciihword" does not exist, skipping
|
NOTICE: mapping for token type "asciihword" does not exist, skipping
|
||||||
-- Comment on a text search configuration
|
-- Comment on a text search configuration
|
||||||
COMMENT ON TEXT SEARCH CONFIGURATION french_noaccent IS 'a text configuration that is butcherd to test all edge cases';
|
COMMENT ON TEXT SEARCH CONFIGURATION french_noaccent IS 'a text configuration that is butchered to test all edge cases';
|
||||||
SELECT * FROM run_command_on_workers($$
|
SELECT * FROM run_command_on_workers($$
|
||||||
SELECT obj_description('text_search.french_noaccent'::regconfig);
|
SELECT obj_description('text_search.french_noaccent'::regconfig);
|
||||||
$$) ORDER BY 1,2;
|
$$) ORDER BY 1,2;
|
||||||
nodename | nodeport | success | result
|
nodename | nodeport | success | result
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
localhost | 57637 | t | a text configuration that is butcherd to test all edge cases
|
localhost | 57637 | t | a text configuration that is butchered to test all edge cases
|
||||||
localhost | 57638 | t | a text configuration that is butcherd to test all edge cases
|
localhost | 57638 | t | a text configuration that is butchered to test all edge cases
|
||||||
(2 rows)
|
(2 rows)
|
||||||
|
|
||||||
-- Remove a comment
|
-- Remove a comment
|
||||||
|
|
|
@ -42,7 +42,7 @@ WHERE relname LIKE 'part_table%'
|
||||||
ORDER BY 1,2,3;
|
ORDER BY 1,2,3;
|
||||||
|
|
||||||
-- check the constraint names on the worker node
|
-- check the constraint names on the worker node
|
||||||
-- verify that check constraınts do not have a shardId suffix
|
-- verify that check constraints do not have a shardId suffix
|
||||||
\c - - - :worker_1_port
|
\c - - - :worker_1_port
|
||||||
SELECT relname, conname, pg_catalog.pg_get_constraintdef(con.oid, true)
|
SELECT relname, conname, pg_catalog.pg_get_constraintdef(con.oid, true)
|
||||||
FROM pg_constraint con JOIN pg_class rel ON (rel.oid=con.conrelid)
|
FROM pg_constraint con JOIN pg_class rel ON (rel.oid=con.conrelid)
|
||||||
|
|
|
@ -2,7 +2,7 @@ CREATE SCHEMA text_search;
|
||||||
CREATE SCHEMA text_search2;
|
CREATE SCHEMA text_search2;
|
||||||
SET search_path TO text_search;
|
SET search_path TO text_search;
|
||||||
|
|
||||||
-- create a new configruation from scratch
|
-- create a new configuration from scratch
|
||||||
CREATE TEXT SEARCH CONFIGURATION my_text_search_config ( parser = default );
|
CREATE TEXT SEARCH CONFIGURATION my_text_search_config ( parser = default );
|
||||||
CREATE TABLE t1(id int, name text);
|
CREATE TABLE t1(id int, name text);
|
||||||
CREATE INDEX t1_search_name ON t1 USING gin (to_tsvector('text_search.my_text_search_config'::regconfig, (COALESCE(name, ''::character varying))::text));
|
CREATE INDEX t1_search_name ON t1 USING gin (to_tsvector('text_search.my_text_search_config'::regconfig, (COALESCE(name, ''::character varying))::text));
|
||||||
|
@ -84,7 +84,7 @@ $$) ORDER BY 1,2;
|
||||||
ALTER TEXT SEARCH CONFIGURATION french_noaccent DROP MAPPING IF EXISTS FOR asciihword;
|
ALTER TEXT SEARCH CONFIGURATION french_noaccent DROP MAPPING IF EXISTS FOR asciihword;
|
||||||
|
|
||||||
-- Comment on a text search configuration
|
-- Comment on a text search configuration
|
||||||
COMMENT ON TEXT SEARCH CONFIGURATION french_noaccent IS 'a text configuration that is butcherd to test all edge cases';
|
COMMENT ON TEXT SEARCH CONFIGURATION french_noaccent IS 'a text configuration that is butchered to test all edge cases';
|
||||||
SELECT * FROM run_command_on_workers($$
|
SELECT * FROM run_command_on_workers($$
|
||||||
SELECT obj_description('text_search.french_noaccent'::regconfig);
|
SELECT obj_description('text_search.french_noaccent'::regconfig);
|
||||||
$$) ORDER BY 1,2;
|
$$) ORDER BY 1,2;
|
||||||
|
|
Loading…
Reference in New Issue