Closed EnriqueGautoSand closed 3 years ago
Create the btree_gin extension using SQL: CREATE EXTENSION btree_gin
i run that "CREATE EXTENSION btree_gin" in sql and create the extension but trouble persists im using Flask 1.0.2 Python 3.7.0 and postgresql 12 on windows
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedObject) the bigint data type does not have a default operator class for the "gist" accessor
TIP: You must specify an operator class for the index, or define a default operator class for the data type.
[SQL:
CREATE TABLE transaction (
id BIGSERIAL NOT NULL,
native_transaction_id BIGINT,
issued_at TIMESTAMP WITHOUT TIME ZONE,
client_addr INET,
PRIMARY KEY (id),
CONSTRAINT transaction_unique_native_tx_id EXCLUDE USING gist (native_transaction_id WITH =, tsrange(issued_at - INTERVAL '1 hour', issued_at) WITH &&)
)
]
(Background on this error at: http://sqlalche.me/e/13/f405)
working with "CREATE EXTENSION btree_gist ; " thank you man!!!
i have the next error using with flask-appbuilder