This is a multi-part message in MIME format.
------_=_NextPart_001_01CACA78.7F51811F
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
PostgreSQL Version: 8.3.5
OS Version: FreeBSD 7.0 i386
Issue: the last_vacuum column is not
being updated following a manual vacuum against a table or database.
This was highlighted recently when I configured the check_postgresql.pl
script to be used from NAGIOS.
Background:
Drilling down through the pg_stat_all_tables view, the underlying
functions
* pg_stat_get_last_vacuum_time(),
* pg_stat_get_last_autovacuum_time(),
* pg_stat_get_last_analyze_time() and
* pg_stat_get_last_autoanalyze_time()
are not returning anything even though I have run manual and auto
vacuums against these tables recently, along with ANALYZE.
Whether it makes a difference, I can confirm that track_counts and
track_activities are both on in postgresql.conf. The stats collection
service is also running on the server - I've verified this by looking at
the processes on the server.
This is causing issues with both our monitoring and also our confidence
that the autovacuum service is running as it should. We have a standby
server with identical configuration (as far as I can see) and this is
correctly keeping the stats up to date. The only difference is postgres
has been running well over a year on the server with the issue.
Many thanks in advance,
Steve Jones
------_=_NextPart_001_01CACA78.7F51811F
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 14 =
(filtered medium)"><style><!--
/* Font Definitions */
[at] font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
[at] font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
[at] font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
[at] font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-US;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
..MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
[at] page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
[at] list l0
{mso-list-id:1018779000;
mso-list-type:hybrid;
mso-list-template-ids:889768324 134807553 134807555 134807557 134807553 =
134807555 134807557 134807553 134807555 134807557;}
[at] list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
[at] list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
[at] list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
[at] list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
[at] list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
[at] list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
[at] list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
[at] list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
[at] list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-GB link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal>PostgreSQL =
Version: 8.3.5<o:p></o:p></p><p =
class=3DMsoNormal>OS Version: =
&=
nbsp; FreeBSD 7.0 i386<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal =
style=3D'margin-left:108.0pt;text-indent:-108.0pt'>Issue: =
&=
nbsp; &n=
bsp; the =
last_vacuum column is not being updated following a manual vacuum =
against a table or database. This was highlighted recently when I =
configured the check_postgresql.pl script to be used from NAGIOS. =
<o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal>Background:<o:p></o:p></p><p =
class=3DMsoNormal>Drilling down through the pg_stat_all_tables view, the =
underlying functions <o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoListParagraph =
style=3D'text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if =
!supportLists]><span style=3D'font-family:Symbol'><span =
style=3D'mso-list:Ignore'>·<span style=3D'font:7.0pt "Times New =
Roman"'> =
</span></span></span><![endif]>pg_stat_get_last_vacuum_time(), =
<o:p></o:p></p><p class=3DMsoListParagraph =
style=3D'text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if =
!supportLists]><span style=3D'font-family:Symbol'><span =
style=3D'mso-list:Ignore'>·<span style=3D'font:7.0pt "Times New =
Roman"'> =
</span></span></span><![endif]>pg_stat_get_last_autovacuum_time(), =
<o:p></o:p></p><p class=3DMsoListParagraph =
style=3D'text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if =
!supportLists]><span style=3D'font-family:Symbol'><span =
style=3D'mso-list:Ignore'>·<span style=3D'font:7.0pt "Times New =
Roman"'> =
</span></span></span><![endif]>pg_stat_get_last_analyze_time() =
and<o:p></o:p></p><p class=3DMsoListParagraph =
style=3D'text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if =
!supportLists]><span style=3D'font-family:Symbol'><span =
style=3D'mso-list:Ignore'>·<span style=3D'font:7.0pt "Times New =
Roman"'> =
</span></span></span><![endif]>pg_stat_get_last_autoanalyze_time()<o:p></=
o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal>are not returning anything even though I have run =
manual and auto vacuums against these tables recently, along with =
ANALYZE.<o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal>Whether it makes a difference, I can confirm that =
track_counts and track_activities are both on in postgresql.conf. =
The stats collection service is also running on the server =
– I’ve verified this by looking at the processes on the =
server.<o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal>This is causing issues with both our monitoring and =
also our confidence that the autovacuum service is running as it =
should. We have a standby server with identical configuration (as =
far as I can see) and this is correctly keeping the stats up to =
date. The only difference is postgres has been running well over a =
year on the server with the issue.<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>Many thanks =
in advance,<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><div><p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"; mso-fareast-l=
anguage:EN-GB'>Steve Jones<o:p></o:p></span></p></div><p =
class=3DMsoNormal><o:p> </o:p></p></div></body></html>
------_=_NextPart_001_01CACA78.7F51811F--
