Skip to content

Conversation

aokiji
Copy link
Contributor

@aokiji aokiji commented Sep 21, 2025

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, the issue seems to be using c.relkind in the select statement without using it in the group by expression

I'm using postgres 12 to test it

Nicolás De los Santos added 2 commits September 21, 2025 22:11
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
@psteinroe
Copy link
Collaborator

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, the issue seems to be using c.relkind in the select statement without using it in the group by expression

I'm using postgres 12 to test it

weird that sqlx prepare did not throw - thanks!

@psteinroe psteinroe merged commit df6abda into supabase-community:main Sep 23, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants