Postgres limit param, default to infinite
<p>I am passing a parameter into a Postgres query which allows the user to set the <code>LIMIT</code> of the result set. This parameter is optional and I would like to set the default <code>LIMIT</code> to infinite (no limit) but I'm not sure what to pass in this case. Would a limit of -1 be viewed as no limit?</p>