Re: "Some tests to cover hash_index"

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Mithun Cy <mithun(dot)cy(at)enterprisedb(dot)com>
Cc: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: "Some tests to cover hash_index"
Date: 2016-09-20 18:26:29
Message-ID: 20160920182629.GA645491@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Why not use generate_series() queries to insert the appropriate number
of tuples, instead of a handful of INSERT lines each time? Since each
insert is a separate transaction, that would probably be faster.

Why do you have a plpgsql function just to create a cursor? Wouldn't it
be simpler to create the cursor in an SQL statement?

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jesper Pedersen 2016-09-20 18:29:38 Re: pageinspect: Hash index support
Previous Message Jesper Pedersen 2016-09-20 18:25:19 Re: pageinspect: Hash index support