Vacuumdb Errors --Any ideas?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Keary Suska

    Vacuumdb Errors --Any ideas?

    I received the following errors from an automated full vacuum:

    vacuumdb: vacuuming of database "milemgr" failed: ERROR: tuple concurrently
    updated
    ERROR: Vacuum command failed: Inappropriate ioctl for device

    I can't find any information on these errors. Does anyone have an idea what
    they mean and indicate?

    [PG v7.4.2, RH 2.4.21-4.ELsmp]

    TIA,

    Keary Suska
    Esoteritech, Inc.
    "Leveraging Open Source for a better Internet"


    ---------------------------(end of broadcast)---------------------------
    TIP 8: explain analyze is your friend

  • Tom Lane

    #2
    Re: Vacuumdb Errors --Any ideas?

    Keary Suska <hierophant@pci sys.net> writes:[color=blue]
    > I received the following errors from an automated full vacuum:
    > vacuumdb: vacuuming of database "milemgr" failed: ERROR: tuple concurrently
    > updated[/color]

    Hm, could you have had more than one of these beasts running? It's
    possible to get such an error from concurrent ANALYZE operations on
    the same table. (This happens if the second ANALYZE tries to update the
    pg_statistic rows before the first one is able to commit. It's a pretty
    narrow window, and there's no real harm involved, so we haven't tried
    hard to get rid of the race condition.)
    [color=blue]
    > ERROR: Vacuum command failed: Inappropriate ioctl for device[/color]

    I have no idea where that came from --- I can't find "vacuum command
    failed" anywhere in current sources. I suspect the second part of the
    message just comes from someone printing strerror(errno) in a context
    where errno isn't meaningful.

    Bottom line: don't panic. If you can find where the second message came
    from, though, I'd like to know.

    regards, tom lane

    ---------------------------(end of broadcast)---------------------------
    TIP 4: Don't 'kill -9' the postmaster

    Comment

    • Tom Lane

      #3
      Re: Vacuumdb Errors --Any ideas?

      Keary Suska <hierophant@pci sys.net> writes:[color=blue]
      > I received the following errors from an automated full vacuum:
      > vacuumdb: vacuuming of database "milemgr" failed: ERROR: tuple concurrently
      > updated[/color]

      Hm, could you have had more than one of these beasts running? It's
      possible to get such an error from concurrent ANALYZE operations on
      the same table. (This happens if the second ANALYZE tries to update the
      pg_statistic rows before the first one is able to commit. It's a pretty
      narrow window, and there's no real harm involved, so we haven't tried
      hard to get rid of the race condition.)
      [color=blue]
      > ERROR: Vacuum command failed: Inappropriate ioctl for device[/color]

      I have no idea where that came from --- I can't find "vacuum command
      failed" anywhere in current sources. I suspect the second part of the
      message just comes from someone printing strerror(errno) in a context
      where errno isn't meaningful.

      Bottom line: don't panic. If you can find where the second message came
      from, though, I'd like to know.

      regards, tom lane

      ---------------------------(end of broadcast)---------------------------
      TIP 4: Don't 'kill -9' the postmaster

      Comment

      • Keary Suska

        #4
        Re: Vacuumdb Errors --Any ideas?

        on 5/1/04 3:11 PM, tgl@sss.pgh.pa. us purportedly said:
        [color=blue]
        > Keary Suska <hierophant@pci sys.net> writes:[color=green]
        >> I received the following errors from an automated full vacuum:
        >> vacuumdb: vacuuming of database "milemgr" failed: ERROR: tuple concurrently
        >> updated[/color]
        >
        > Hm, could you have had more than one of these beasts running? It's
        > possible to get such an error from concurrent ANALYZE operations on
        > the same table.[/color]

        That is likely the issue--I forgot that I have a regular vacuum analyze that
        may run at the same time.
        [color=blue][color=green]
        >> ERROR: Vacuum command failed: Inappropriate ioctl for device[/color]
        >
        > I have no idea where that came from --- I can't find "vacuum command
        > failed" anywhere in current sources. I suspect the second part of the
        > message just comes from someone printing strerror(errno) in a context
        > where errno isn't meaningful.[/color]

        Probably is--in this case vacuumdb is called form a Perl script that
        reports errors itself as well if the command failed. That error part,
        "Inappropri ate ioctl for device", is probably just Perl not knowing how to
        intrerpret vacuumdb return codes. Sorry for having you look this up. I
        should have reviewed my script to see what it carps on its own.

        Thanks for your help,

        Keary Suska
        Esoteritech, Inc.
        "Leveraging Open Source for a better Internet"


        ---------------------------(end of broadcast)---------------------------
        TIP 9: the planner will ignore your desire to choose an index scan if your
        joining column's datatypes do not match

        Comment

        • Keary Suska

          #5
          Re: Vacuumdb Errors --Any ideas?

          on 5/1/04 3:11 PM, tgl@sss.pgh.pa. us purportedly said:
          [color=blue]
          > Keary Suska <hierophant@pci sys.net> writes:[color=green]
          >> I received the following errors from an automated full vacuum:
          >> vacuumdb: vacuuming of database "milemgr" failed: ERROR: tuple concurrently
          >> updated[/color]
          >
          > Hm, could you have had more than one of these beasts running? It's
          > possible to get such an error from concurrent ANALYZE operations on
          > the same table.[/color]

          That is likely the issue--I forgot that I have a regular vacuum analyze that
          may run at the same time.
          [color=blue][color=green]
          >> ERROR: Vacuum command failed: Inappropriate ioctl for device[/color]
          >
          > I have no idea where that came from --- I can't find "vacuum command
          > failed" anywhere in current sources. I suspect the second part of the
          > message just comes from someone printing strerror(errno) in a context
          > where errno isn't meaningful.[/color]

          Probably is--in this case vacuumdb is called form a Perl script that
          reports errors itself as well if the command failed. That error part,
          "Inappropri ate ioctl for device", is probably just Perl not knowing how to
          intrerpret vacuumdb return codes. Sorry for having you look this up. I
          should have reviewed my script to see what it carps on its own.

          Thanks for your help,

          Keary Suska
          Esoteritech, Inc.
          "Leveraging Open Source for a better Internet"


          ---------------------------(end of broadcast)---------------------------
          TIP 9: the planner will ignore your desire to choose an index scan if your
          joining column's datatypes do not match

          Comment

          Working...