postgres pass value to subquery code example Example: pass parameters into postgres bash psql -v v1=12 -v v2="'Hello World'" -v v3="'2010-11-12'"