You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
geodata-catalog/README.md

16 lines
383 B

# Requirements
### Minimal versions
python 3.7
postgresql 11
### Database schema
includes GIN index column `geodata_search_idx`
```sql
ALTER TABLE geodata ADD COLUMN geodata_search_ts TSVECTOR
GENERATED ALWAYS AS (to_tsvector('russian', geodata.description) STORED
```
(use coalese() if multiple)
```sql
CREATE INDEX geodata_search_idx ON geodata USING GIN (geodata_search_ts);
```