Skip to content

Commit 0e6a824

Browse files
author
Nicolás De los Santos
committed
fix: add missing column in group by expression
when trying to use the lsp server autocompletion didnt work and when activating logs found messages such as: > ERROR pgt_lsp::session error=Database error: column "c.relkind" must appear in the GROUP BY clause or be used in an aggregate function upon adding c.relkind into the group by expression autocomplete started working as expected
1 parent a1f6a56 commit 0e6a824

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/pgt_schema_cache/src/queries/tables.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ where
3535
group by
3636
c.oid,
3737
c.relname,
38+
c.relkind,
3839
c.relrowsecurity,
3940
c.relforcerowsecurity,
4041
c.relreplident,
41-
nc.nspname;
42+
nc.nspname;

0 commit comments

Comments
 (0)