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

Add no lock parameter for Postgres #1030

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ray-Barker
Copy link

Essentially a copy of Mysql no-lock parameter, but for Postgres.
Opened issue addressing this: #1001

@coveralls
Copy link

Coverage Status

coverage: 59.303% (+0.08%) from 59.226%
when pulling 22e4ef6 on Ray-Barker:ray-barker/add-no-lock-postgres
into a5dc5d1 on golang-migrate:master.

Copy link
Member

@dhui dhui left a comment

Choose a reason for hiding this comment

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

@Ray-Barker thanks for the PR!
Could you address my comments and rebase to re-run tests?

@@ -53,6 +53,7 @@ type Config struct {
migrationsTableName string
StatementTimeout time.Duration
MultiStatementMaxSize int
NoLock bool
Copy link
Member

Choose a reason for hiding this comment

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

Document this new parameter in the README

@@ -453,6 +469,7 @@ func (p *Postgres) Drop() (err error) {
// Note that this function locks the database, which deviates from the usual
// convention of "caller locks" in the Postgres type.
func (p *Postgres) ensureVersionTable() (err error) {

Copy link
Member

Choose a reason for hiding this comment

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

Nit: remove this unnecessary change

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.

None yet

3 participants