Failed to get Postgres indexes properly when calling DBMetas() for tables with specific index functions #2412
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#2412
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description:
When using the DBMetas() function in the Engine type to retrieve database metadata, there seems to be an issue with properly detecting Postgres indexes, especially when the index involves functions like
to_tsvector
.Steps to Reproduce:
to_tsvector
function, for example:Expected Behavior:
The database metadata should be retrieved successfully, including information about the indexes on the tables.
Actual Behavior:
Encounter the following error:
I have tried another approach
This way, I'm encountering the following error when attempting to call DBMetas():
Do you have plans to support complex data types/indexes in Postgres?
Is is possible in
loadTableInfo
to return the columns that have been parsed successfully and skip unparsed ones somehow (with a warning maybe) ?Regular indexes look like:
However, the problem arises when parsing
indexdefs
like:in
As a result, I'm getting the value
But it should be something like