question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Excesive re-generation of sequences in 3.7

See original GitHub issue

After updating from 3.6 to 3.7, when running diff with no changes in database, sequences are being incorrectly re-generated.

Fix: Reverting #155 fixed the issue for me.

My project is a Grails 3.3 application, using PostgreSQL with sequence generator and prefer_sequence_per_entity.

The re-generated sequences look like this

alterSequence(incrementBy: "1", sequenceName: "ActivityCategory_SEQ")
alterSequence(incrementBy: "1", sequenceName: "ActivityExecution_SEQ")
alterSequence(incrementBy: "1", sequenceName: "ActivityTemplate_SEQ")
...

After applying the fix, new sequences are added in 3.6 style

createSequence(sequenceName: "ActivityCategory_SEQ")
createSequence(sequenceName: "ActivityExecution_SEQ")
...

instead of the 3.7 style. This causes no problem for my project.

createSequence(incrementBy: "1", sequenceName: "ActivityCategory_SEQ", startValue: "1")
createSequence(incrementBy: "1", sequenceName: "ActivityExecution_SEQ", startValue: "1")
...

┆Issue is synchronized with this Jira Bug by Unito

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
Toilalcommented, Mar 30, 2021

It seems there’s nobody to review my pull request 😦

5reactions
Jazzepicommented, Oct 16, 2019

I’m seeing the same issue using

Postgres 10.6 Spring boot 2.x

Gradle plugin and liquibase dependencies

liquibaseRuntime 'org.postgresql:postgresql:42.2.4'
liquibaseRuntime 'org.liquibase:liquibase-core:3.8.0'
liquibaseRuntime 'org.liquibase.ext:liquibase-hibernate5:3.8'
liquibaseRuntime 'org.liquibase:liquibase-gradle-plugin:2.0.1'
liquibaseRuntime sourceSets.main.compileClasspath
liquibaseRuntime sourceSets.main.output

Mine adds these

<changeSet author="sasquatch (generated)" id="1571262284155-1">
    <alterSequence incrementBy="1" sequenceName="hibernate_sequence"/>
</changeSet>
<changeSet author="sasquatch (generated)" id="1571262530397-1">
    <alterSequence incrementBy="1" sequenceName="hibernate_sequence"/>
</changeSet>
Read more comments on GitHub >

github_iconTop Results From Across the Web

How often should DPF Regenerations take place?
There is only one answer to excessive DPF Regeneration: Eliminate or dramatically reduce diesel particulate matter (soot). If you can achieve near perfect ......
Read more >
Performance and Regeneration Characteristics of a ... - JSTOR
cylinder in-line heavy-duty diesel engine. Table 1 lists the engine specifications. ... 4 3.7 593 4.7 12,100 14.8 ... The loading and regeneration...
Read more >
Additions, Revisions, or Updates DiagnosticLink users - NHTSA
a. Yes; excessive DEF build-up can cause inaccurate NOx readings. The DEF build-up was cleared during the. High Idle Parked Regeneration.
Read more >
Excessive Hepatomegaly of Mice with Hepatocyte-Targeted ...
In this study, we demonstrate that integrin linked kinase (ILK) which is involved in transmission of the extracellular matrix [ECM] signaling by ...
Read more >
Excessive hepatomegaly of mice with hepatocyteâ•'targeted ...
growth and termination of liver regeneration does not ... sequence were also purchased from Signosis. ... erÀ/À mice showed a 3.7-fold increase (Fig....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found