Postgres Command Line Query String Definition