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

When installing the postgres_scanner plugin, duck db crashes and exits #267

Closed
2 tasks done
liwashington opened this issue Sep 21, 2024 · 3 comments
Closed
2 tasks done

Comments

@liwashington
Copy link

What happens?

The other day, duck db released version 1.1.0, but when using the postgres_scanner extension, the program automatically exited and did not work. As shown in the following figure:
postgres_scanner

I want to build and use postgres_scanner on my Windows host, but I cannot succeed. So, can it be build using msys2 on Windows? What should we do if possible? thank you!

To Reproduce

Download duckdb cli from url:https://github.com/duckdb/duckdb/releases/download/v1.1.0/duckdb_cli-windows-amd64.zip,
After unzip it, run duckdb, then execute: INSTALL postgres;
Duckdb has no display. After a while, the program exits。

OS:

windows10,windows11

PostgreSQL Version:

none

DuckDB Version:

v1.1.0

DuckDB Client:

duckdb.exe

Full Name:

liwashington

Affiliation:

There were no errors displayed throughout the entire process

Have you tried this on the latest main branch?

  • I agree

Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

  • I agree
@Mytherin
Copy link
Contributor

Thanks for the report! This is most likely related to your installed MSVC version - see duckdb/duckdb#13848

@liwashington
Copy link
Author

Thanks for the report! This is most likely related to your installed MSVC version - see duckdb/duckdb#13848

Thank you !That's indeed the issue. But can you provide a method for compiling under Windows?

@carlopi
Copy link
Contributor

carlopi commented Sep 23, 2024

Given failure mode I also would assume this to be related to the linked issue, I would expect given behaviour that the segfault would be there on any instruction, and not be specific to the INSTALL postgres query.

This would be properly fixed in the upcoming v1.1.1, or workarounds can be found at duckdb/duckdb#13848 (comment)

As for how to build [loadable] duckdb extensions in general, and postgres_scanner in particular, can you raise this as a GitHub discussion, sharing the steps you tried / where it goes wrong? Or even better on https://discord.duckdb.org?

The bottom line is always following the steps performed by CI for producing the binaries.

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

No branches or pull requests

3 participants