I am an Oracle DB guy and learning Postgres. Want to check if Postgres provides substitution variable functionality to supply value at run time, below is an example from oracle
select * from test where id = '&id'; => & character
Enter value for id: 1
ID
----------
1