PostgreSQL equivalent to SQL Server's TVP
<p>SQL Server has Table Value Parameters which allows you to pass an array of values as a parameter.</p>

<p>What is the appropiate way to achieve something similar to a PostgreSQL query so I can do something like:</p>

<p><code>select * from product where id in ($1)</code></p>

<p>I'm using Npgsql .NET library.</p>

<p><a href="https://www.nuget.org/packages/Npgsql/3.0.5" rel="nofollow">https://www.nuget.org/packages/Npgsql/3.0.5</a></p>