Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: use container with Postgres 13 for dump.sql#15411

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
hugodutka merged 1 commit intomainfromhugodutka/containerized-dbgen
Nov 7, 2024

Conversation

hugodutka
Copy link
Contributor

@hugodutkahugodutka commentedNov 6, 2024
edited
Loading

Changes from#15336 made thecoderd/database/gen/dump/main.go script used bymake gen connect to the Postgres container running at localhost:5432 if it was available. Previously a new Postgres 13 container would be created every time.

This is annoying during development - if you're running a Postgres 16 container in the background you'll get a differentdump.sql than with Postgres 13. This PR reverts the script to create a fresh Postgres 13 container on each run.

@hugodutkahugodutka changed the titlefix: open container with Postgres 13 for dump.sqlfix: use container with Postgres 13 for dump.sqlNov 6, 2024
@hugodutkahugodutka marked this pull request as ready for reviewNovember 6, 2024 17:01
@hugodutkahugodutka requested a review fromEmyrkNovember 6, 2024 17:01
Copy link
Member

@EmyrkEmyrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Does this kill the PG 16 db?

@hugodutka
Copy link
ContributorAuthor

Does this kill the PG 16 db?

It only starts a new pg 13 container on a random port and then cleans it up. Doesn't affect other containers.

Emyrk reacted with thumbs up emoji

@hugodutkahugodutka merged commitf85ef84 intomainNov 7, 2024
42 checks passed
@hugodutkahugodutka deleted the hugodutka/containerized-dbgen branchNovember 7, 2024 15:49
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@EmyrkEmyrkEmyrk approved these changes

Assignees

@hugodutkahugodutka

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@hugodutka@Emyrk

[8]ページ先頭

©2009-2025 Movatter.jp