{"id":1551,"date":"2016-09-14T23:57:00","date_gmt":"2016-09-15T04:57:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/instalar-y-configurar-postgresql-en-apricity-os\/"},"modified":"2016-09-14T23:57:00","modified_gmt":"2016-09-15T04:57:00","slug":"instalar-y-configurar-postgresql-en-apricity-os","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/instalar-y-configurar-postgresql-en-apricity-os\/","title":{"rendered":"Instalar y configurar Postgresql en Apricity OS"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-5fHu_WtTEIQ\/V9omqqlhI8I\/AAAAAAAADWw\/mxmE1ISL10w4v8gstT6MEAxFRjsh4bC7QCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-09-14%2B23-41-26.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"324\" src=\"https:\/\/1.bp.blogspot.com\/-5fHu_WtTEIQ\/V9omqqlhI8I\/AAAAAAAADWw\/mxmE1ISL10w4v8gstT6MEAxFRjsh4bC7QCLcB\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-09-14%2B23-41-26.png\" width=\"640\" \/><\/a><\/div>\n<p><span style=\"font-size: large;\"><br \/><\/span><span style=\"font-size: large;\">Como ya sabran, postgresql es un gestor de bases de datos. El cual es casi igual o m\u00e1s utilizado que mysql o mariadb.<\/span><br \/><span style=\"font-size: large;\"><br \/><\/span><span style=\"font-size: large;\">Instalaci\u00f3n en Apricity.<\/span><br \/><span style=\"font-size: large;\"><br \/><\/span><span style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #262626; display: inline !important; float: none; font-family: &quot;Carrois Gothic&quot;, sans-serif; font-size: 12.8px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;\"><\/span><\/p>\n<pre style=\"-webkit-text-stroke-width: 0px; background: 0% 0% no-repeat rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #262626; font-family: &quot;Courier 10 Pitch&quot;, Courier, monospace; font-size: 13px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 8px 15px; max-width: 100%; opacity: 0.85; orphans: 2; outline: 0px; overflow: auto; padding: 9.5px; text-align: left; text-indent: 0px; text-shadow: none; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: 2; word-break: break-all; word-spacing: 0px; word-wrap: break-word;\"><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\">sudo pacman -S postgresql<\/span><\/span><\/pre>\n<p><span style=\"font-size: large;\"><br \/><\/span><span style=\"font-size: large;\">Una vez que termina de instalar, entramos en modo root.<\/span><br \/><span style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #262626; display: inline !important; float: none; font-family: &quot;Carrois Gothic&quot;, sans-serif; font-size: 12.8px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;\"><\/span><\/p>\n<pre style=\"-webkit-text-stroke-width: 0px; background: 0% 0% no-repeat rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #262626; font-family: &quot;Courier 10 Pitch&quot;, Courier, monospace; font-size: 13px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 8px 15px; max-width: 100%; opacity: 0.85; orphans: 2; outline: 0px; overflow: auto; padding: 9.5px; text-align: left; text-indent: 0px; text-shadow: none; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: 2; word-break: break-all; word-spacing: 0px; word-wrap: break-word;\"><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\">su<\/span><\/span><\/pre>\n<p><span style=\"font-size: large;\">Una vez entrado en modo root iniciamos sesi\u00f3n con el usuario postgres:<\/span><br \/><span style=\"font-size: large;\"><br \/><\/span><\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #262626; font-family: &quot;Courier 10 Pitch&quot;, Courier, monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-shadow: none; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\">su - postgres<\/span><\/span><\/pre>\n<div><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><br \/><\/span><\/span><\/div>\n<p><span style=\"font-size: large;\">Ahora inicializamos el cluster de postgresql<\/span><\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #262626; font-family: &quot;Courier 10 Pitch&quot;, Courier, monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-shadow: none; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\">sudo initdb --locale $LANG -E UTF8 -D '\/var\/lib\/postgres\/data'<\/span><\/span><\/pre>\n<div><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><br \/><\/span><\/span><\/div>\n<p><span style=\"font-size: large;\">Mostrar\u00e1 un salida parecidad a esta:<\/span><\/p>\n<pre style=\"-webkit-text-stroke-width: 0px; background: rgb(241, 241, 241); border-radius: 0px; border: none; box-sizing: border-box; color: #222222; font-family: monospace, monospace; font-size: 15px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; margin: 24px 0px 1.6em; max-width: 100%; orphans: 2; outline: 0px; overflow: auto; padding: 4px 10px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; widows: 2; word-spacing: 0px;\">Los archivos de este cluster ser\u00e1n de propiedad del usuario \u00abpostgres\u00bb.<br \/>Este usuario tambi\u00e9n debe ser quien ejecute el proceso servidor.<br \/><br \/>El cluster ser\u00e1 inicializado con configuraci\u00f3n regional \u00abes_MX.UTF-8\u00bb.<br \/>La configuraci\u00f3n de b\u00fasqueda en texto ha sido definida a \u00abspanish\u00bb.<br \/><br \/>Las sumas de verificaci\u00f3n en p\u00e1ginas de datos han sido desactivadas.<br \/><br \/>corrigiendo permisos en el directorio existente \/var\/lib\/postgres\/data ... hecho<br \/>creando subdirectorios ... hecho<br \/>seleccionando el valor para max_connections ... 100<br \/>seleccionando el valor para shared_buffers ... 128MB<br \/>seleccionando implementaci\u00f3n de memoria compartida din\u00e1mica ...posix<br \/>creando archivos de configuraci\u00f3n ... hecho<br \/>creando base de datos template1 en \/var\/lib\/postgres\/data\/base\/1 ... hecho<br \/>inicializando pg_authid ... hecho<br \/>inicializando dependencias ... hecho<br \/>creando las vistas de sistema ... hecho<br \/>cargando las descripciones de los objetos del sistema ... hecho<br \/>creando algoritmos de ordenamiento ... hecho<br \/>creando conversiones ... hecho<br \/>creando diccionarios ... hecho<br \/>estableciendo privilegios en objetos predefinidos ... hecho<br \/>creando el esquema de informaci\u00f3n ... hecho<br \/>instalando el lenguaje PL\/pgSQL ... hecho<br \/>haciendo vacuum a la base de datos template1 ... hecho<br \/>copiando template1 a template0 ... hecho<br \/>copiando template1 a postgres ... hecho<br \/>sincronizando los datos a disco ... hecho<br \/><br \/>ATENCI\u00d3N: activando autentificaci\u00f3n \u00abtrust\u00bb para conexiones locales.<br \/>Puede cambiar esto editando pg_hba.conf o usando el par\u00e1metro -A,<br \/>o --auth-local y --auth-host la pr\u00f3xima vez que ejecute initdb.<br \/><br \/>Completado. Ahora puede iniciar el servidor de bases de datos usando:<br \/><br \/>    pg_ctl -D \/var\/lib\/postgres\/data -l archivo_de_log start<\/pre>\n<div><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><br \/><\/span><\/span><\/div>\n<p><span style=\"font-size: large;\">Iniciar el demonio de postgresql<\/span><\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #262626; font-family: &quot;Courier 10 Pitch&quot;, Courier, monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-shadow: none; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\">systemctl start postgresql<\/span><\/span><\/pre>\n<div><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><br \/><\/span><\/span><\/div>\n<p><span style=\"font-size: large;\">Una vez iniciado, tecleamos los siguientes comandos para cambiar la contrase\u00f1a del usuario postgres.<\/span><\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #262626; font-family: &quot;Courier 10 Pitch&quot;, Courier, monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-shadow: none; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\">psql<\/span><\/span><\/pre>\n<div><span style=\"border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><br \/><\/span><\/span><\/div>\n<p><span style=\"font-size: large;\">Con el siguiente comando cambiamos la contrase\u00f1a de postgres, el promt debe ser&nbsp;postgres=#<\/span><\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #262626; font-family: &quot;Courier 10 Pitch&quot;, Courier, monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-shadow: none; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\">postgres=# password postgres<\/span><\/span><\/pre>\n<div><span style=\"border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><br \/><\/span><\/span><\/div>\n<p><span style=\"font-size: large;\">Solicitar\u00e1 la contrase\u00f1a nueva, asignar la que se conveniente.<\/span><br \/><span style=\"font-size: large;\"><br \/><\/span><span style=\"font-size: large;\">Despu\u00e9s de cambiar la contrase\u00f1a, salir del modo postgres, y regresar solo al modo root, con los siguientes comandos:<\/span><\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #262626; font-family: &quot;Courier 10 Pitch&quot;, Courier, monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-shadow: none; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\">postgres=# q<\/span><\/span><\/pre>\n<div><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><br \/><\/span><\/span><\/div>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #262626; font-family: &quot;Courier 10 Pitch&quot;, Courier, monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-shadow: none; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\">exit<\/span><\/span><\/pre>\n<div><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><br \/><\/span><\/span><\/div>\n<p><span style=\"font-size: large;\"><br \/><\/span><span style=\"font-size: large;\">Ahora modificaremos los archivos&nbsp;\/var\/lib\/postgres\/data\/postgresql.conf y&nbsp;\/var\/lib\/postgres\/data\/pg_hba.conf<\/span><br \/><span style=\"font-size: large;\"><br \/><\/span><span style=\"font-size: large;\">El archivo&nbsp;\/var\/lib\/postgres\/data\/postgresql.conf<\/span><\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #262626; font-family: &quot;Courier 10 Pitch&quot;, Courier, monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-shadow: none; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\">gedit \/var\/lib\/postgres\/data\/postgresql.conf<\/span><\/span><\/pre>\n<div><span style=\"border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><br \/><\/span><\/span><\/div>\n<p><span style=\"font-size: large;\">Se descomenta la l\u00ednea del puerto y la direcci\u00f3n en la que estar\u00e1 a la escucha el servidor.<\/span><\/p>\n<pre style=\"background: url(&quot;assets\/shadow.png&quot;) 50% 100% repeat-x rgb(245, 245, 245); border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-shadow: rgb(204, 204, 204) 0px 0px 3px; box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; font-stretch: normal; line-height: 1.42857; margin-bottom: 10px; max-width: 100%; outline: 0px; overflow: auto; padding: 9.5px; tab-size: 4; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\">[...]<br \/>#listen_addresses = 'localhost'<br \/>[...]<br \/>#port = 5432<br \/>[...]<\/pre>\n<p><span style=\"background-color: white; color: #262626; font-family: &quot;Carrois Gothic&quot;, sans-serif; font-size: 12.8px; line-height: 24px;\"><\/span><br \/><span style=\"font-size: large;\">El archivo \/var\/lib\/postgres\/data\/pg_hba.conf<\/span><\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #262626; font-family: &quot;Courier 10 Pitch&quot;, Courier, monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-shadow: none; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\">gedit \/var\/lib\/postgres\/data\/pg_hba.conf<\/span><\/span><\/pre>\n<div><span style=\"border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><br \/><\/span><\/span><\/div>\n<p><span style=\"font-size: large;\">Se reemplazan las \u00faltimas lineas, por estas.<\/span><br \/><span style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #262626; display: inline !important; float: none; font-family: &quot;Carrois Gothic&quot;, sans-serif; font-size: 12.8px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;\"><\/span><\/p>\n<pre style=\"-webkit-text-stroke-width: 0px; background: url(&quot;assets\/shadow.png&quot;) 50% 100% repeat-x rgb(245, 245, 245); border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-shadow: rgb(204, 204, 204) 0px 0px 3px; box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; font-stretch: normal; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; line-height: 1.42857; margin: 0px 0px 10px; max-width: 100%; orphans: 2; outline: 0px; overflow: auto; padding: 9.5px; tab-size: 4; text-align: left; text-indent: 0px; text-shadow: rgb(255, 255, 255) 0px 1px 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: 2; word-break: break-all; word-spacing: 0px; word-wrap: break-word;\">[...]<br \/># TYPE  DATABASE        USER            ADDRESS                 METHOD<br \/># \"local\" is for Unix domain socket connections only<br \/>local   all             all                                     md5<br \/># IPv4 local connections:<br \/>host    all             all             127.0.0.1\/32            md5<br \/>host    all             all             192.168.1.0\/24          md5<br \/># IPv6 local connections:<br \/>host    all             all             ::1\/128                 md5<br \/>[...]<\/pre>\n<p><span style=\"font-size: large;\"><br \/><\/span><span style=\"font-size: large;\">Se reinicia el servidor y listo.<\/span><\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #262626; font-family: &quot;Courier 10 Pitch&quot;, Courier, monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-shadow: none; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\">sudo systemctl restart postgresql<\/span><\/span><\/pre>\n<div><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; color: white; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><br \/><\/span><\/span><\/div>\n<p><span style=\"font-size: large;\"><br \/><\/span><\/p>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Y con eso ya se tiene instalado postgresql. Se puede utilizar con pgadmin3 o dbeaver.<\/span><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Como ya sabran, postgresql es un gestor de bases de datos. El cual es casi igual o m\u00e1s utilizado que mysql o mariadb.Instalaci\u00f3n en Apricity. sudo pacman -S postgresql Una vez que termina de instalar, entramos en modo root. su Una vez entrado en modo root iniciamos sesi\u00f3n con el usuario postgres: su &#8211; postgres [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[375,413,357,414,122,412],"tags":[],"class_list":["post-1551","post","type-post","status-publish","format-standard","hentry","category-arch","category-instalar-apricity-os","category-install","category-pacman","category-postgresql","category-yaourt"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/comments?post=1551"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1551\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}