Generated tsvector breaks table editor
See original GitHub issueBug report
Describe the bug
Creating a generated column of type tsvector breaks insert row of table editor on https://app.supabase.io/.
To Reproduce
- Create table
- Create a generated column like so:
ALTER TABLE tablename
ADD COLUMN fts tsvector
GENERATED ALWAYS AS (to_tsvector('english', "columnname")) STORED;
- Go to table editor on https://app.supabase.io/ and try to insert new row.
- Error message:
cannot insert into column "fts"
Table editor shows: to_tsvector('english'::regconfig, fts)
as default value. Removing it results in same error message as above.
Expected behavior
No default value is show in tsvecor generated column. Insert works leaving column fts empty.
System information
- OS: macOS
- Browser: Chrome
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Generated tsvector breaks table editor · Issue #7155
Creating a generated column of type tsvector breaks insert row of table editor ... Go to table editor on https://app.supabase.io/ and try to...
Read more >Documentation: 15: 12.3. Controlling Text Search
To implement full text searching there must be a function to create a tsvector from a document and a tsquery from a user...
Read more >Understanding Postgres Full Text Search: 10 Critical Aspects
This blog explains the PostgreSQL Full Text Search Technique along with the Phrased Search and Vector Search methods. Read along to master ...
Read more >PostgreSQL: Is it possible to build tsvector value manually?
You can make tsvectors by hand. But as far as I know you can only assign 4 different weights, A, B, C, or...
Read more >PostgreSQL® Full-Text Search
For the example queries below, the following table definition and data was ... By skipping them, the generated tsvector will be smaller, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
(Note to FE team): This is now fixed in pg-meta, so we just need to make the relevant changes to the Grid to solve this
Hey @phamhieu. I’ve just noticed, that when you try to update a row using direct edit in the table view (not detail view of an item). I still get an error message caused by the tsvector column.
When I edit the row in the detail view (update form) it works.