PostgreSQL 16.1 Documentationpoint as a vector, this is equivalent to scaling the object's size and distance from the origin by the length of the vector, and rotating it coun- terclockwise around the origin by the vector's angle from point as a vector, this is equivalent to scaling the ob- ject's size and distance from the origin down by the length of the vector, and rotating it clock- wise around the origin by the vector's angle from querytree('foo & ! bar'::tsquery) → 'foo' setweight ( vector tsvector, weight "char" ) → tsvector Assigns the specified weight to each element of the vector. setweight('fat:2,4 cat:3 rat:5B'::tsvector, 'A')0 码力 | 3133 页 | 14.10 MB | 1 年前3
PostgreSQL 16.1 Documentationpoint as a vector, this is equiva- lent to scaling the object's size and distance from the origin by the length of the vector, and rotating it counterclockwise around the origin by the vector's angle from point as a vector, this is equivalent to scal- ing the object's size and distance from the origin down by the length of the vector, and rotating it clockwise around the origin by the vector's angle from 'foo' setweight ( vector tsvector, weight "char" ) → tsvector 303 Functions and Operators Function Description Example(s) Assigns the specified weight to each element of the vector. setweight('fat:20 码力 | 2974 页 | 14.22 MB | 1 年前3
PostgreSQL 14.10 Documentationpoint as a vector, this is equivalent to scaling the object's size and distance from the origin by the length of the vector, and rotating it coun- terclockwise around the origin by the vector's angle from point as a vector, this is equivalent to scaling the ob- ject's size and distance from the origin down by the length of the vector, and rotating it clock- wise around the origin by the vector's angle from querytree('foo & ! bar'::tsquery) → 'foo' setweight ( vector tsvector, weight "char" ) → tsvector Assigns the specified weight to each element of the vector. setweight('fat:2,4 cat:3 rat:5B'::tsvector, 'A')0 码力 | 3032 页 | 13.27 MB | 1 年前3
PostgreSQL 13.14 Documentationpoint as a vector, this is equivalent to scaling the object's size and distance from the origin by the length of the vector, and rotating it coun- terclockwise around the origin by the vector's angle from point as a vector, this is equivalent to scaling the ob- ject's size and distance from the origin down by the length of the vector, and rotating it clock- wise around the origin by the vector's angle from querytree('foo & ! bar'::tsquery) → 'foo' setweight ( vector tsvector, weight "char" ) → tsvector Assigns the specified weight to each element of the vector. 304 Functions and Operators Function Description0 码力 | 2940 页 | 12.89 MB | 1 年前3
PostgreSQL 15.5 Documentationpoint as a vector, this is equivalent to scaling the object's size and distance from the origin by the length of the vector, and rotating it coun- terclockwise around the origin by the vector's angle from point as a vector, this is equivalent to scaling the ob- ject's size and distance from the origin down by the length of the vector, and rotating it clock- wise around the origin by the vector's angle from querytree('foo & ! bar'::tsquery) → 'foo' setweight ( vector tsvector, weight "char" ) → tsvector Assigns the specified weight to each element of the vector. setweight('fat:2,4 cat:3 rat:5B'::tsvector, 'A')0 码力 | 3073 页 | 13.49 MB | 1 年前3
PostgreSQL 14.10 Documentationpoint as a vector, this is equiva- lent to scaling the object's size and distance from the origin by the length of the vector, and rotating it counterclockwise around the origin by the vector's angle from If one interprets the second point as a vector, this is equivalent to scal- ing the object's size and distance from the origin down by the length of the vector, and 284 Functions and Operators Operator Operator Description Example(s) rotating it clockwise around the origin by the vector's angle from the x axis. Available for point, box,a path, circle. path '((0,0),(1,0),(1,1))' / point '(2.0,0)' → ((0,0)0 码力 | 2871 页 | 13.38 MB | 1 年前3
PostgreSQL 13.13 Documentationpoint as a vector, this is equiva- lent to scaling the object's size and distance from the origin by the length of the vector, and rotating it counterclockwise around the origin by the vector's angle from point as a vector, this is equivalent to scal- ing the object's size and distance from the origin down by the length of the vector, and rotating it clockwise around the origin by the vector's angle from querytree('foo & ! bar'::tsquery) → 'foo' setweight ( vector tsvector, weight "char" ) → tsvector Assigns the specified weight to each element of the vector. setweight('fat:2,4 cat:3 rat:5B'::tsvector, 'A')0 码力 | 2782 页 | 13.00 MB | 1 年前3
PostgreSQL 15.5 Documentationpoint as a vector, this is equiva- lent to scaling the object's size and distance from the origin by the length of the vector, and rotating it counterclockwise around the origin by the vector's angle from point as a vector, this is equivalent to scal- ing the object's size and distance from the origin down by the length of the vector, and rotating it clockwise around the origin by the vector's angle from querytree('foo & ! bar'::tsquery) → 'foo' setweight ( vector tsvector, weight "char" ) → tsvector Assigns the specified weight to each element of the vector. setweight('fat:2,4 cat:3 rat:5B'::tsvector, 'A')0 码力 | 2910 页 | 13.60 MB | 1 年前3
PostgreSQL 17beta1 US Documentationpoint as a vector, this is equivalent to scaling the object's size and distance from the origin by the length of the vector, and rotating it coun- terclockwise around the origin by the vector's angle from point as a vector, this is equivalent to scaling the ob- ject's size and distance from the origin down by the length of the vector, and rotating it clock- wise around the origin by the vector's angle from querytree('foo & ! bar'::tsquery) → 'foo' setweight ( vector tsvector, weight "char" ) → tsvector Assigns the specified weight to each element of the vector. setweight('fat:2,4 cat:3 rat:5B'::tsvector, 'A')0 码力 | 3188 页 | 14.32 MB | 1 年前3
PostgreSQL 开发最佳实践• select * from tbl where x=? and y=1; -- use partial index. • select * from tbl where ts_vector && ts_query? order by ? offset ? limit ?; • use rum idx instead gin; 2016Postgres中国用户大会 防止雪崩 • truncate instead delete all data 2016Postgres中国用户大会 稳定性与性能建议 • ddl in xact; • ts_vector or array instead string(a,b,c,d,...) . xx like '%a%' • 递归查询一定要有跳出递归的条件 • 估值计算,HLL代替count(distinct0 码力 | 16 页 | 381.36 KB | 1 年前3
共 41 条
- 1
- 2
- 3
- 4
- 5













