Commit Graph

16 Commits

Author SHA1 Message Date
yanndegat
be5280e4e1 remote-state/pg: add option to skip schema creation (#21607)
* add `skip_schema_creation` option
* add sanity check to avoid situations where postgres users
  hasn't been granted the "CREATE SCHEMA" right

closes #21604

Signed-off-by: yann degat <yann@2kmail.net>
2019-08-27 11:14:32 -04:00
Stephen Buergler
fc5b186e8d Don't leak so many connections in the pg backend
This change fixes an error I get:
Error: pq: too many connections for role "asdf"
because I can only have so many connections.
2019-04-30 23:34:51 -05:00
Mars Hall
34fa67c6b0 Correct pg backend error info 2019-03-05 11:37:08 -08:00
Mars Hall
ccf549a62d Stricter pg backend locking during workspace creation 2019-03-05 11:19:56 -08:00
Mars Hall
31c9776d55 Switch pg backend to session-level advisory locking, to avoid rollback of partial state updates 2019-03-04 17:01:08 -08:00
Mars Hall
6d9e2048f4 Skip more pg backend acceptance tests 2019-02-26 16:50:36 -08:00
Mars Hall
920e7a7acc Mutex pg backend‘s database transaction 2019-02-26 13:45:16 -08:00
Mars Hall
c6bf3442fc Lock() in pg backend now returns LockError for retryable errors 2019-02-26 13:20:40 -08:00
Mars Hall
a075a68c58 Correct name of pg backend‘s default schema 2019-02-26 12:59:31 -08:00
Mars Hall
2621f95bd2 📚 doc corrections 2019-02-25 16:30:30 -08:00
Mars Hall
b9a91b7c1e Switch pg backend to use native Postgres locks 2019-02-25 16:05:53 -08:00
Mars Hall
8cb2943b6b pg backend tests run when TF_ACC is set (no more TF_PG_TEST) 2019-02-22 14:42:24 -08:00
Mars Hall
c8b8227967 Compatibility fixes for 0.12.0 2019-02-22 13:54:41 -08:00
Mars Hall
d4d798c25e Fix to use existing pg indexes 2019-02-22 13:51:57 -08:00
Mars Hall
9feda7aab3 Correct code comment for pg 2019-02-22 13:51:57 -08:00
Mars Hall
9043005cfb Postgres database backend 2019-02-22 13:48:49 -08:00