Assuming a table with a timestamp column such as
my_db=# \d l1
                                     Tabelle »public.l1«
    Spalte     |              Typ               | Sortierfolge | NULL erlaubt? | Vorgabewert 
---------------+--------------------------------+--------------+---------------+-------------
 timestamp     | timestamp(6) without time zone |              | not null      | 
What is the most efficient way to query for those rows which match
<stub>
time(timestamp)>='10:00:00' and time(timestamp)<='10:30:00'
</stub>
I could not find a suitable BETWEEN statement.
 
    