Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. postgresql VACUUM

postgresql VACUUM

Scheduled Pinned Locked Moved Database
databasepostgresqlcomtoolshelp
11 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V V 0

    So I managed to run into the error:

    "ERROR: database is not accepting commands to avoid wraparound data loss in database "mydb" HINT: Stop the postmaster and use a standalone backend to vacuum that database. You might also need to commit or roll back old prepared transactions."

    I followed google into the solution of restarting the database in standalone mode (like here[^]), but when I run:

    VACUUM FULL mytable;

    it gives me the message:

    backend> VACUUM FULL mytable;
    2015-05-06 09:45:09 UTC WARNING: database "mydb" must be vacuumed within 999976 transactions
    2015-05-06 09:45:09 UTC HINT: To avoid a database shutdown, execute a database-wide VACUUM in that database.
    You might also need to commit or roll back old prepared transactions.
    2015-05-06 09:47:53 UTC WARNING: database "mydb" must be vacuumed within 999975 transactions
    2015-05-06 09:47:53 UTC HINT: To avoid a database shutdown, execute a database-wide VACUUM in that database.
    You might also need to commit or roll back old prepared transactions.
    2015-05-06 09:47:53 UTC WARNING: database "mydb" must be vacuumed within 999974 transactions
    2015-05-06 09:47:53 UTC HINT: To avoid a database shutdown, execute a database-wide VACUUM in that database.
    You might also need to commit or roll back old prepared transactions.
    backend>

    I have no idea what I can do with this.. Just continue the VACUUM for all tables? thanks.

    V.
    (MQOTD rules and previous solutions)

    T Offline
    T Offline
    Tim Carmichael
    wrote on last edited by
    #2

    It must be said... that really sucks.

    M 1 Reply Last reply
    0
    • T Tim Carmichael

      It must be said... that really sucks.

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #3

      That should be marked as abuse!

      Never underestimate the power of human stupidity RAH

      T V 2 Replies Last reply
      0
      • M Mycroft Holmes

        That should be marked as abuse!

        Never underestimate the power of human stupidity RAH

        T Offline
        T Offline
        Tim Carmichael
        wrote on last edited by
        #4

        That is why I used the joke icon.

        1 Reply Last reply
        0
        • M Mycroft Holmes

          That should be marked as abuse!

          Never underestimate the power of human stupidity RAH

          V Offline
          V Offline
          V 0
          wrote on last edited by
          #5

          That's all right. I'm a big boy now. Not that the joke is funny, my VACUUM command failed and I'm really worrying right now. This is the development database, but I'm really afraid for the production database following any minute. I did a VACUUM on all tables for production except for one (the largest one) which fails to do anything :sigh:. Anyway, continueing the search, with a positive attitude :)

          V.
          (MQOTD rules and previous solutions)

          M T 2 Replies Last reply
          0
          • V V 0

            That's all right. I'm a big boy now. Not that the joke is funny, my VACUUM command failed and I'm really worrying right now. This is the development database, but I'm really afraid for the production database following any minute. I did a VACUUM on all tables for production except for one (the largest one) which fails to do anything :sigh:. Anyway, continueing the search, with a positive attitude :)

            V.
            (MQOTD rules and previous solutions)

            M Offline
            M Offline
            Mycroft Holmes
            wrote on last edited by
            #6

            I meant Tim's response... I can't help as I have zero experience with MySql. You might check out if SQLServerCentral helps out with MySql or if there is a specialist site for the database. This sounds like a DBA level problem not a developer issue.

            Never underestimate the power of human stupidity RAH

            V 1 Reply Last reply
            0
            • M Mycroft Holmes

              I meant Tim's response... I can't help as I have zero experience with MySql. You might check out if SQLServerCentral helps out with MySql or if there is a specialist site for the database. This sounds like a DBA level problem not a developer issue.

              Never underestimate the power of human stupidity RAH

              V Offline
              V Offline
              V 0
              wrote on last edited by
              #7

              Mycroft Holmes wrote:

              I meant Tim's response...

              I know ... I am the DBA and developer and analyst and tester and ... ;)

              V.
              (MQOTD rules and previous solutions)

              M 1 Reply Last reply
              0
              • V V 0

                Mycroft Holmes wrote:

                I meant Tim's response...

                I know ... I am the DBA and developer and analyst and tester and ... ;)

                V.
                (MQOTD rules and previous solutions)

                M Offline
                M Offline
                Mycroft Holmes
                wrote on last edited by
                #8

                V. wrote:

                he DBA and developer and analyst and tester and ...

                No you are the poor sod having to look after the database, you may have designed, built, populated the data, tuned the indexes and then broke the bloody thing. You are not a DBA, you just have to do that job. Sorry I can't help!

                Never underestimate the power of human stupidity RAH

                1 Reply Last reply
                0
                • V V 0

                  That's all right. I'm a big boy now. Not that the joke is funny, my VACUUM command failed and I'm really worrying right now. This is the development database, but I'm really afraid for the production database following any minute. I did a VACUUM on all tables for production except for one (the largest one) which fails to do anything :sigh:. Anyway, continueing the search, with a positive attitude :)

                  V.
                  (MQOTD rules and previous solutions)

                  T Offline
                  T Offline
                  Tim Carmichael
                  wrote on last edited by
                  #9

                  I've never used Postgres or I would help. Can you do a backup and compress? Just grasping for help....

                  1 Reply Last reply
                  0
                  • V V 0

                    So I managed to run into the error:

                    "ERROR: database is not accepting commands to avoid wraparound data loss in database "mydb" HINT: Stop the postmaster and use a standalone backend to vacuum that database. You might also need to commit or roll back old prepared transactions."

                    I followed google into the solution of restarting the database in standalone mode (like here[^]), but when I run:

                    VACUUM FULL mytable;

                    it gives me the message:

                    backend> VACUUM FULL mytable;
                    2015-05-06 09:45:09 UTC WARNING: database "mydb" must be vacuumed within 999976 transactions
                    2015-05-06 09:45:09 UTC HINT: To avoid a database shutdown, execute a database-wide VACUUM in that database.
                    You might also need to commit or roll back old prepared transactions.
                    2015-05-06 09:47:53 UTC WARNING: database "mydb" must be vacuumed within 999975 transactions
                    2015-05-06 09:47:53 UTC HINT: To avoid a database shutdown, execute a database-wide VACUUM in that database.
                    You might also need to commit or roll back old prepared transactions.
                    2015-05-06 09:47:53 UTC WARNING: database "mydb" must be vacuumed within 999974 transactions
                    2015-05-06 09:47:53 UTC HINT: To avoid a database shutdown, execute a database-wide VACUUM in that database.
                    You might also need to commit or roll back old prepared transactions.
                    backend>

                    I have no idea what I can do with this.. Just continue the VACUUM for all tables? thanks.

                    V.
                    (MQOTD rules and previous solutions)

                    T Offline
                    T Offline
                    Tim Carmichael
                    wrote on last edited by
                    #10

                    Again, no Postgres experience, but here is a possible link: http://www.postgresql.org/docs/9.0/static/routine-vacuuming.html[^]

                    V 1 Reply Last reply
                    0
                    • T Tim Carmichael

                      Again, no Postgres experience, but here is a possible link: http://www.postgresql.org/docs/9.0/static/routine-vacuuming.html[^]

                      V Offline
                      V Offline
                      V 0
                      wrote on last edited by
                      #11

                      It's in the planning to do something like this, but for the immediate problem it won't help me. But thanks for the effort.

                      V.
                      (MQOTD rules and previous solutions)

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups