Booking Dates and times

From: Kevin Waterson <kevin(dot)waterson(at)gmail(dot)com>
To: "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Booking Dates and times
Date: 2016-01-28 18:53:42
Message-ID: CAJSapQ02F-p7sV9kzx7m39rotk8P89v+60K2wVjyygbSEB6GbA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am creating a small booking system, and need to generate a series of
dates, for the year, with each booking. Using generate_series I can create
the dates, and fill them with a booking date based on the lower tsrange for
the booking.
I need to extend this to also fetch ALL the dates in the tsrange.

This is the schema and story so far.
All help gratefully welcomed.

http://pastie.org/10698843

Thanks,
Kev

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2016-01-28 19:02:07 repmgr quickstart...
Previous Message Igor Neyman 2016-01-28 18:33:53 Re: BRIN indexes