Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: pq: unknown function: pg_get_triggerdef(): function undefined when using tbls doc #438

Closed
mohammadv184 opened this issue Feb 13, 2023 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@mohammadv184
Copy link

What happened

I encountered an error while using the tbls doc command to generate documentation for my CockroachDB database. The error message reads:‍
pq: unknown function: pg_get_triggerdef(): function undefined

What you expected to happened

The documentation should be generated successfully without any errors.

What stack trace or error message from tbls did you see?

pq: unknown function: pg_get_triggerdef(): function undefined

Anything else we need to know?

Environment

  • tbls version: 1.62.0
  • Database version: CockroachDB CCL v22.2.0 (x86_64-pc-linux-gnu, built 2022/12/05 16:37:36, go1.19.1)
  • OS ( Ubuntu bionic, macOS Calalina, WSL2, etc ): Ubuntu 22.04.1 LTS
  • Shell ( bash, zsh, poworshell, etc ): zsh
  • Stacktrace or error message from tbls ( If you can, set DEBUG=1):
github.com/k1LoW/tbls/drivers/postgres.(*Postgres).Analyze
	/home/runner/work/tbls/tbls/drivers/postgres/postgres.go:144
github.com/k1LoW/tbls/datasource.Analyze
	/home/runner/work/tbls/tbls/datasource/datasource.go:131
github.com/k1LoW/tbls/cmd.glob..func5
	/home/runner/work/tbls/tbls/cmd/doc.go:72
github.com/spf13/cobra.(*Command).execute
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:916
github.com/spf13/cobra.(*Command).ExecuteC
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044
github.com/spf13/cobra.(*Command).Execute
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968
github.com/k1LoW/tbls/cmd.Execute
	/home/runner/work/tbls/tbls/cmd/root.go:191
main.main
	/home/runner/work/tbls/tbls/main.go:34
runtime.main
	/opt/hostedtoolcache/go/1.19.5/x64/src/runtime/proc.go:250
runtime.goexit
	/opt/hostedtoolcache/go/1.19.5/x64/src/runtime/asm_amd64.s:1594
  • Config ( .tbls.yml ): without config file
@mohammadv184 mohammadv184 added the bug Something isn't working label Feb 13, 2023
@k1LoW k1LoW added the duplicate This issue or pull request already exists label Feb 13, 2023
@k1LoW
Copy link
Owner

k1LoW commented Feb 13, 2023

@mohammadv184 Thank you for your report.

CockroachDB is not supported.

This is a duplicate of #335

@k1LoW k1LoW closed this as completed Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants