agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Christophe Pettus <xof@thebuild.com>
To: Iuri Sampaio <iuri.sampaio@gmail.com>
Cc: pgsql-sql <pgsql-sql@lists.postgresql.org>
Subject: Re: Crossing/Rotating table rows to rows and columns
Date: Wed, 2 Sep 2020 19:58:05 -0700
Message-ID: <82BA6332-81EC-40E4-92AF-5A5254DB32BF@thebuild.com> (raw)
In-Reply-To: <2B732C2C-5DC9-4D66-A54C-90EFF8780541@gmail.com>
References: <2B732C2C-5DC9-4D66-A54C-90EFF8780541@gmail.com>
> On Sep 2, 2020, at 19:58, Iuri Sampaio <iuri.sampaio@gmail.com> wrote:
> I've tried to use crosstabN(text sql), to solve the problem directly in the datasource layer, but apparently tablefunc is not supported in the datamodel Squema
"tablefunc" is an extension, so you will need to create it in your database before using it:
CREATE EXTENSION tablefunc;
--
-- Christophe Pettus
xof@thebuild.com
view thread (5+ messages) latest in thread
Message-ID: <82BA6332-81EC-40E4-92AF-5A5254DB32BF@thebuild.com>
Permalink: ../82BA6332-81EC-40E4-92AF-5A5254DB32BF@thebuild.com/
Also on: postgresql.org/message-id/82BA6332-81EC-40E4-92AF-5A5254DB32BF@thebuild.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: xof@thebuild.com, iuri.sampaio@gmail.com, pgsql-sql@lists.postgresql.org
Subject: Re: Crossing/Rotating table rows to rows and columns
In-Reply-To: <82BA6332-81EC-40E4-92AF-5A5254DB32BF@thebuild.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox