release v1.8.6

This commit is contained in:
meilin.huang
2024-05-23 17:18:22 +08:00
parent bb1522f4dc
commit d85bbff270
7 changed files with 94 additions and 35 deletions

View File

@@ -42,13 +42,13 @@ SELECT a.indexname AS "i
indexdef AS "indexDef",
c.attname AS "columnName",
c.attnum AS "seqInIndex",
case when a.indexname like '%_pkey' then 1 else 0 end AS "isPrimaryKey"
case when a.indexname like '%%_pkey' then 1 else 0 end AS "isPrimaryKey"
FROM pg_indexes a
join pg_class b on a.indexname = b.relname
join pg_attribute c on b.oid = c.attrelid
WHERE a.schemaname = (select current_schema())
AND a.tablename = '%s'
AND a.indexname not like '%_pkey'
AND a.indexname not like '%%_pkey'
---------------------------------------
--PGSQL_COLUMN_MA 表列信息
SELECT a.table_name AS "tableName",