Data between start time stamp and end time stamp at 5 minutes Interval in postgres
<p>I am retrieving data between my start time stamp and end time stamp at every 5 minutes interval but not getting results as required this is my query</p>

<pre><code>CREATE TABLE table_1
(
  timestamp_col text
)

INSERT INTO table_1(
            timestamp_col)
    VALUES ('04-01-2016 10:00:00'),('04-01-2016 10:01:00'),('04-01-2016 10:02:00'),('04-01-2016 10:03:00')
    ,('04-01-2016 10:04:00'),('04-01-2016 10:05:00'),('04-01-2016 10:06:00'),('04-01-2016 10:07:00')
    ,('04-01-2016 10:08:00'),('04-01-2016 10:09:00'),('04-01-2016 10:00:00'),('04-01-2016 10:10:00')
    ,('04-01-2016 10:11:00'),('04-01-2016 10:12:00'),('04-01-2016 10:13:00'),('04-01-2016 10:14:00')
    ,('04-01-2016 10:15:00');

SELECT 
    to_timestamp(floor((extract('epoch' from timestamp_col::timestamp without time zone) / 300 )) * 300) 
    AT TIME ZONE 'UTC' as interval_alias
    FROM table_1 Where timestamp_col::timestamp without time zone
    Between '04-01-2016 10:02:00' AND '04-01-2016 10:15:00'
    GROUP BY interval_alias

2016-01-04 10:00:00
2016-01-04 10:05:00
2016-01-04 10:10:00
2016-01-04 10:15:00
</code></pre>

<p>Required Output is</p>

<pre><code>2016-01-04 10:02:00
2016-01-04 10:07:00
2016-01-04 10:12:00
</code></pre>

<p>Suppose my first record between "04-01-2016 10:11:11" and "04-01-2016 12:10:30" is 04-01-2016 10:12:11 
and my interval is 5 minutes then it should show record of time stamp 04-01-2016 10:12:11 + 5 minutes i.e of 04-01-2016 10:17:11 if present please help guys</p>