Q: ERROR: syntax error at or near "set" I am getting an error by executing following sql script code.
set search_path = 'RX_MIP'
set ON_ERROR_STOP on

\i import-products.sql
...
...

Error : syntax error at or near "set" 
Can someone help me with above error.
I am using Postgresql DB and SQLWorkbench to execute scripts.
'RX_MIP' is a schema under by DB and that statement is getting executed successfully independently. 

A: As pointed out in the comments, the psql specific meta-commands \i, \d, ... are not supported by SQL Workbench/J 
To run a SQL script use the WbInclude command
