{"id":5300,"date":"2022-12-24T08:17:08","date_gmt":"2022-12-24T11:17:08","guid":{"rendered":"http:\/\/wiki3.locaweb.com.br\/?post_type=ht_kb&#038;p=5300"},"modified":"2025-08-06T10:54:49","modified_gmt":"2025-08-06T13:54:49","slug":"como-verificar-a-versao-da-base-postgresql-hospedagem-de-sites","status":"publish","type":"ht_kb","link":"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-verificar-a-versao-da-base-postgresql-hospedagem-de-sites\/","title":{"rendered":"Como verificar a vers\u00e3o da base PostgreSQL via SSH- Hospedagem de Sites"},"content":{"rendered":"    \t\t<div class=\"hts-messages hts-messages--info  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\"><b>Informa\u00e7\u00e3o!<\/b><\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tAprenda como verificar a vers\u00e3o da base postgresql da sua Hospedagem de Sites via SSH.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<h6>Verificando vers\u00e3o<\/h6>\n<ul>\n<li>Acesse o servi\u00e7o atrav\u00e9s do <a href=\"https:\/\/ajuda.locaweb.com.br\/wiki\/como-utilizar-o-ssh-hospedagem-de-sites\/\" target=\"_blank\" rel=\"noopener\">SSH<\/a>.<\/li>\n<li>Depois de acessar, conecte-se em sua base utilizando o comando:<\/li>\n<\/ul>\n<pre>psql -h [HOST] -U [USUARIODOBANCO] -W<\/pre>\n<p style=\"padding-left: 30px;\"><strong>Ex.:<\/strong>\u00a0psql -h<em> postgresql01.meudominio.com.br<\/em> -U<em> cliente <\/em>-W<\/p>\n<ul>\n<li>Em seguida, ser\u00e1 solicitada a senha do banco de dados.<\/li>\n<li>Depois de se conectar, execute o comando abaixo:<\/li>\n<\/ul>\n<pre>SELECT version();<\/pre>\n    \t\t<div class=\"hts-messages hts-messages--success  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\"><b>Pronto!<\/b><\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tA vers\u00e3o do PostgreSQL ser\u00e1 apresentada.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n    \t\t<div class=\"hts-messages hts-messages--info  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\"><b>Conhe\u00e7a!<\/b><\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tAproveite e conhe\u00e7a outros produtos da Locaweb, como o Clic Lead, <a href=\"https:\/\/www.locaweb.com.br\/clic-lead\/\" target=\"_blank\" rel=\"noopener noreferrer\">clique aqui<\/a> e saiba mais!    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n","protected":false},"excerpt":{"rendered":"<p>Verificando vers\u00e3o Acesse o servi\u00e7o atrav\u00e9s do SSH. Depois de acessar, conecte-se em sua base utilizando o comando: psql -h [HOST] -U [USUARIODOBANCO] -W Ex.:\u00a0psql -h postgresql01.meudominio.com.br -U cliente -W Em seguida, ser\u00e1 solicitada a senha do banco de dados. Depois de se conectar, execute o comando abaixo: SELECT version();<\/p>\n","protected":false},"author":6,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[119],"ht-kb-tag":[418],"class_list":["post-5300","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-hospedagem-de-sites","ht_kb_tag-categoriahospedagem"],"_links":{"self":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/5300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/comments?post=5300"}],"version-history":[{"count":12,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/5300\/revisions"}],"predecessor-version":[{"id":38200,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/5300\/revisions\/38200"}],"wp:attachment":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/media?parent=5300"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-category?post=5300"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-tag?post=5300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}