Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Postgres Pro Shardman
Postgres Pro Enterprise Manager
Postgres Pro ProGate
Cloud Solutions
Postgres Extensions
Cases
Courses
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Postgres Pro Shardman
Postgres Pro Enterprise Manager
Postgres Pro ProGate
Cloud Solutions
Postgres Extensions
Cases
Courses
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Facebook
Request a Demo
Home
>
mailing lists
Re: How to put multiples results in just one column - Mailing list pgsql-sql
From
Nei Rauni Santos
Subject
Re: How to put multiples results in just one column
Date
January 31, 2013
13:56:28
Msg-id
CADRPEPAiXjpCJ4KTVMJve5Amf4fFPWW6y2Piv4_0JAfZt3cJcA@mail.gmail.com
Whole thread
Raw
In response to
Re: How to put multiples results in just one column
(Pavel Stehule <pavel.stehule@gmail.com>)
Responses
Re: How to put multiples results in just one column
List
pgsql-sql
Tree view
Thank you Pavel,
I could do that like this:
select
p.id
,
( select array_accum ((
room_name, room_id, room_group_name, room_group_id, room_order, availability_min, price_amount, price_min, price_avg, price_balcony_amount, price_balcony_avg, capacity, deposit_required, breakfast_included, room_min_stay
)::cms.room_availability_list_type)
from cms.sp_get_supplier_availability(2, '2013-02-01', '2013-02-05', 'pt_BR', 1, '{1}')
) room
from wr.prestadores p
where
p.id
= 2;
the only problem is that it takes about 2293 ms for just one result.
Any idea about the more effective way to do that?
On Thu, Jan 31, 2013 at 10:39 AM, Pavel Stehule
<
pavel.stehule@gmail.com
>
wrote:
fce
--
[]s!!
Nei
pgsql-sql
by date:
Previous
From:
Pavel Stehule
Date:
31 January 2013, 12:40:41
Subject:
Re: How to put multiples results in just one column
Next
From:
Pavel Stehule
Date:
31 January 2013, 14:05:35
Subject:
Re: How to put multiples results in just one column
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
×
I confirm that I have read and accepted PostgresPro’s
Privacy Policy
.
I agree to get Postgres Pro discount offers and other marketing communications.
✖
×
×
Everywhere
Documentation
Mailing list
List:
all lists
pgsql-general
pgsql-hackers
buildfarm-members
pgadmin-hackers
pgadmin-support
pgsql-admin
pgsql-advocacy
pgsql-announce
pgsql-benchmarks
pgsql-bugs
pgsql-chat
pgsql-cluster-hackers
pgsql-committers
pgsql-cygwin
pgsql-docs
pgsql-hackers-pitr
pgsql-hackers-win32
pgsql-interfaces
pgsql-jdbc
pgsql-jobs
pgsql-novice
pgsql-odbc
pgsql-patches
pgsql-performance
pgsql-php
pgsql-pkg-debian
pgsql-pkg-yum
pgsql-ports
pgsql-rrreviewers
pgsql-ru-general
pgsql-sql
pgsql-students
pgsql-testers
pgsql-translators
pgsql-www
psycopg
Period
anytime
within last day
within last week
within last month
within last 6 months
within last year
Sort by
date
reverse date
rank
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Postgres Pro Shardman
Postgres Pro Enterprise Manager
Postgres Pro ProGate
Cloud Solutions
Postgres Extensions
Cases
Courses
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
By continuing to browse this website, you agree to the use of cookies. Go to
Privacy Policy
.
I accept cookies