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

SELECT pg_advisory_lock($1) (details: pq: unknown function: pg_advisory_lock()) in command line #1726

Closed
lethienhoang opened this issue Jul 7, 2022 · 1 comment
Labels
📚 cockroach bug Something isn't working invalid This doesn't seem right

Comments

@lethienhoang
Copy link

Version

1.14.0

What happened?

Steps to Reproduce
Steps to reproduce the behavior:

Run "migrate -path internal/sqlc/migrations -database $(DB_URL) -verbose up"
I ran migrate with the following options and get SELECT pg_advisory_lock($1) (details: pq: unknown function: pg_advisory_lock())
I'm using CoakroachDB online
Expected Behavior
It should be apply new schemas to databases

Relevant log output

No response

Database schema

No response

SQL queries

No response

Configuration

No response

Playground URL

No response

What operating system are you using?

macOS

What database engines are you using?

PostgreSQL

What type of code are you generating?

Go

@lethienhoang lethienhoang added bug Something isn't working triage New issues that hasn't been reviewed labels Jul 7, 2022
@kyleconroy kyleconroy added invalid This doesn't seem right and removed triage New issues that hasn't been reviewed labels Jul 10, 2022
@kyleconroy
Copy link
Collaborator

Cockroach DB does not support pg_advisory_lock. The error you're seeing is a runtime error, not a sqlc error.

cockroachdb/cockroach#13546

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 cockroach bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants