postgresql_16:7.2.6.2 Options
PostgreSQL 16 > Reference > PostgreSQL Client Applications > ecpg > Options
ecpg accepts the following command-line arguments: -c Automatically generate certain C code from SQL code. Currently, this works for EXEC SQL TYPE. -C *mode* Set a compatibility mode. *mode* can be INFORMIX, INFORMIX_SE, or ORACLE. -D *symbol*[=*value*] Define a preprocessor symbol, equivalently to the EXEC SQL DEFINE directive. If no *value* is specified, the symbol is defined with the value 1. -h Process header files. When this option is specified, the output file extension becomes .h not .c, and the default input file extension is .pgh not .pgc. Also, the -c option is forced on. -i Parse system include files as well. -I *directory* Specify an additional include path, used to find files included via EXEC SQL INCLUDE. Defaults are . (current directory), /usr/local/include, the PostgreSQL include directory which is defined at compile time (default: /usr/local/pgsql/include), and /usr/include, in that order. -o *filename* Specifies that ecpg should write all its output to the given *filename*. Write -o - to send all output to standard output. -r *option* Selects run-time behavior. *Option* can be one of the following: no_indicator Do not use indicators but instead use special values to represent null values. Historically there have been databases using this approach. prepare Prepare all statements before using them. Libecpg will keep a cache of prepared statements and reuse a statement if it gets executed again. If the cache runs full, libecpg will free the least used statement. questionmarks Allow question mark as placeholder for compatibility reasons. This used to be the default long ago. -t Turn on autocommit of transactions. In this mode, each SQL command is automatically committed unless it is inside an explicit transaction block. In the default mode, commands are committed only when EXEC SQL COMMIT is issued. -v Print additional information including the version and the "include" path. --version Print the ecpg version and exit. -? --help Show help about ecpg command line arguments, and exit.