{"id":161,"date":"2010-01-28T11:00:55","date_gmt":"2010-01-28T15:00:55","guid":{"rendered":"http:\/\/ryepup.unwashedmeme.com\/blog\/?p=161"},"modified":"2010-01-28T11:00:55","modified_gmt":"2010-01-28T15:00:55","slug":"latest-postgres-docs-bookmarklet","status":"publish","type":"post","link":"http:\/\/ryepup.unwashedmeme.com\/blog\/2010\/01\/28\/latest-postgres-docs-bookmarklet\/","title":{"rendered":"latest postgres docs bookmarklet"},"content":{"rendered":"<p>When using google to find things in the excellent <a href=\"http:\/\/www.postgresql.org\/docs\/\">Postgresql documentation<\/a>, I often end up on pages showing old postgres versions.\u00c2\u00a0 For example, googling for &#8220;postgresql create index&#8221;, the first hit is for the postgresql 8.2 docs, and I&#8217;m running 8.4 now.\u00c2\u00a0 My co-workers made a <a href=\"http:\/\/www.greasespot.net\/\">greasemonkey <\/a>script to automatically redirect to the current version, and I adapted that into a bookmarklet.<\/p>\n<p>Drag this link into your address bar to to use it in your browser:<\/p>\n<p><a href=\"javascript:(function(){window.location = String(window.location).replace(\/docs\\\/[0-9.]+\/,&quot;docs\/current&quot;);})();\">pg-docs<\/a><\/p>\n<p>When you find yourself on a old postgres docs page, click the bookmarklet to redirect to the latest version of that page.\u00c2\u00a0\u00c2\u00a0 This should work as long as the postgres folks keep their URL naming scheme.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When using google to find things in the excellent Postgresql documentation, I often end up on pages showing old postgres versions.\u00c2\u00a0 For example, googling for &#8220;postgresql create index&#8221;, the first hit is for the postgresql 8.2 docs, and I&#8217;m running 8.4 now.\u00c2\u00a0 My co-workers made a greasemonkey script to automatically redirect to the current version, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,37],"tags":[],"class_list":["post-161","post","type-post","status-publish","format-standard","hentry","category-javascript","category-postgresql"],"_links":{"self":[{"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/comments?post=161"}],"version-history":[{"count":2,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":163,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/posts\/161\/revisions\/163"}],"wp:attachment":[{"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/media?parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/categories?post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/tags?post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}