question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`evolve erase` tries to delete `citext` type

See original GitHub issue

I’m creating a domain type based on citext

create extension if not exists citext;
create domain non_empty_citext as citext check (value ~ '\S');

Running evolve erase fails with

ERROR:  cannot drop type citext because extension citext requires it
HINT:  You can drop extension citext instead.
STATEMENT:  DROP TYPE IF EXISTS "public"."citext" CASCADE
ERROR:  current transaction is aborted, commands ignored until end of transaction block2022-01-07 07:47:50.102 UTC [97] STATEMENT:  SELECT pg_advisory_unlock(12345)

Not sure if I’m doing it wrong or this is a bug.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:19 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
lecailloncommented, Jan 11, 2022

Thanks for your help on this one Peter. And thanks for the Dockerfile you post here and there. It is a very good starting point on how to use Evolve in a Docker pipeline

1reaction
lecailloncommented, Jan 10, 2022

Tired of me ^^ Hopefully the 2nd times I added a new test scenario … works well apparently 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation: 15: F.10. citext
The citext data type allows you to eliminate calls to lower in SQL queries, and allows a primary key to be case-insensitive. citext...
Read more >
What does PRIMARY KEY actually signify, and does my ...
The citext data type allows you to eliminate calls to lower in SQL queries, and allows a primary key to be case-insensitive.
Read more >
Documentation
pgTAP is a unit testing framework for PostgreSQL written in PL/pgSQL and PL/SQL. It includes a comprehensive collection of TAP-emitting assertion functions, ...
Read more >
Chapter 2. Change Data Capture Connector for PostgreSQL
Although the column.blacklist configuration property allows you to remove columns from the event values, all columns in a primary or unique key are...
Read more >
Just use Postgres for everything
I think that the job of a CTO is to minimize the surface area of "built in-house" so that your team can focus...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found