<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://wiki.billyrondon.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://wiki.billyrondon.com/feed.php">
        <title>WIKI de apuntes de Billy Rondón - informatica:base_de_datos:postgresql</title>
        <description></description>
        <link>http://wiki.billyrondon.com/</link>
        <image rdf:resource="http://wiki.billyrondon.com/lib/exe/fetch.php/wiki:dokuwiki.svg" />
       <dc:date>2026-06-04T19:22:58+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://wiki.billyrondon.com/doku.php/informatica:base_de_datos:postgresql:postgresql_http?rev=1769243648&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.billyrondon.com/doku.php/informatica:base_de_datos:postgresql:postgresql_json?rev=1770858610&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.billyrondon.com/doku.php/informatica:base_de_datos:postgresql:postgresql_pivot?rev=1769655050&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.billyrondon.com/doku.php/informatica:base_de_datos:postgresql:postgresql_store?rev=1769414672&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.billyrondon.com/doku.php/informatica:base_de_datos:postgresql:start?rev=1770273246&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://wiki.billyrondon.com/lib/exe/fetch.php/wiki:dokuwiki.svg">
        <title>WIKI de apuntes de Billy Rondón</title>
        <link>http://wiki.billyrondon.com/</link>
        <url>http://wiki.billyrondon.com/lib/exe/fetch.php/wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="http://wiki.billyrondon.com/doku.php/informatica:base_de_datos:postgresql:postgresql_http?rev=1769243648&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-01-24T08:34:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>postgresql_http</title>
        <link>http://wiki.billyrondon.com/doku.php/informatica:base_de_datos:postgresql:postgresql_http?rev=1769243648&amp;do=diff</link>
        <description>PostgreSQL HTTP Client

	*  &lt;https://github.com/pramsey/pgsql-http&gt;
	*  &lt;https://anthonysotolongo.wordpress.com/2017/05/08/peticiones-http-desde-postgresql/&gt;
	*  &lt;https://docs.tantorlabs.ru/tdb/en/16_11/se/pgsql-http.html&gt;
	*  &lt;https://www.postgresonline.com/journal/archives/371-http-extension.html&gt;

Esta extensión permite hacer peticiones http a una URL como XmlHTTPRequest como en SQL SERVER

Instalación

	*  &lt;https://share.google/aimode/kz4Fp00zxauMDv5me&gt;

Instalación en Debian:



#Instalar d…</description>
    </item>
    <item rdf:about="http://wiki.billyrondon.com/doku.php/informatica:base_de_datos:postgresql:postgresql_json?rev=1770858610&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-02-12T01:10:10+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>postgresql_json</title>
        <link>http://wiki.billyrondon.com/doku.php/informatica:base_de_datos:postgresql:postgresql_json?rev=1770858610&amp;do=diff</link>
        <description>PostgreSQL JSON

	*  &lt;https://stackoverflow.com/questions/72312526/json-arrays-of-objects-postgresql-table-format&gt;
	*  &lt;https://www.tigerdata.com/learn/how-to-query-jsonb-in-postgresql&gt;

	*  editor online json

	*  &lt;https://www.crunchydata.com/blog/easily-convert-json-into-columns-and-rows-with-json_table&gt;

	*  &lt;https://gitlab.syncad.com/hive/pgsql-http/-/blob/master/sql/http.sql&gt;

	*  &lt;https://www.postgresql.org/docs/9.5/functions-json.html&gt;
	*  &lt;https://neon.com/postgresql/postgresql-json-func…</description>
    </item>
    <item rdf:about="http://wiki.billyrondon.com/doku.php/informatica:base_de_datos:postgresql:postgresql_pivot?rev=1769655050&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-01-29T02:50:50+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>postgresql_pivot</title>
        <link>http://wiki.billyrondon.com/doku.php/informatica:base_de_datos:postgresql:postgresql_pivot?rev=1769655050&amp;do=diff</link>
        <description>PostgreSQL PIVOT

No hay PIVOT, por desgracia esa función tan útil no existe, pero se puede utilizar artificios para obtener un resultado parecido.

	*  &lt;https://learnsql.com/blog/creating-pivot-tables-in-postgresql-using-the-crosstab-function/&gt;
	*  &lt;https://www.beekeeperstudio.io/blog/how-to-pivot-in-postgresql/&gt;
		*  &lt;https://rextester.com/DMRIM25761&gt;

	*  &lt;https://stackoverflow.com/questions/3002499/postgresql-crosstab-query&gt;



CREATE EXTENSION IF NOT EXISTS tablefunc;

CREATE TABLE tbl (
  …</description>
    </item>
    <item rdf:about="http://wiki.billyrondon.com/doku.php/informatica:base_de_datos:postgresql:postgresql_store?rev=1769414672&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-01-26T08:04:32+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>postgresql_store</title>
        <link>http://wiki.billyrondon.com/doku.php/informatica:base_de_datos:postgresql:postgresql_store?rev=1769414672&amp;do=diff</link>
        <description>PostgreSQL Store

Se puede crear un store de dos formas, usando SQL o usando PL/PgSQL

	*  &lt;https://share.google/aimode/uINzEoneLAG3PFq8K&gt;
	*  &lt;https://dev.to/hyperkai/do-statement-in-postgresql-533p&gt;
	*  &lt;https://docs.oracle.com/en/database/other-databases/timesten/22.1/plsql-developer/pl-sql-packages.html#GUID-CD17C443-9122-4419-9A80-9F35A955E9B4&gt;
	*  &lt;https://www.geeksforgeeks.org/postgresql/postgresql-if-statement/&gt;

Los stores en postgres es reciente antes lo tenía que programar en function…</description>
    </item>
    <item rdf:about="http://wiki.billyrondon.com/doku.php/informatica:base_de_datos:postgresql:start?rev=1770273246&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-02-05T06:34:06+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>start</title>
        <link>http://wiki.billyrondon.com/doku.php/informatica:base_de_datos:postgresql:start?rev=1770273246&amp;do=diff</link>
        <description>PostgreSQL

comando linux:


psql


usar usuario local para conectarse a postgres


sudo -i -u postgres


Cuando se usa ; o \q para terminar un query en postgre sino no lo ejecuta.

seleccion DB a usar, como USE 


\c &lt;DB_NOMBRE&gt;


Listar Usuarios:


\du</description>
    </item>
</rdf:RDF>
