Re: Substitutes for some Oracle packages - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Substitutes for some Oracle packages
Date
Msg-id D960CB61B694CF459DCFB4B0128514C203937F20@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Substitutes for some Oracle packages  ("Arnold, Sandra" <ArnoldS@osti.gov>)
List pgsql-general
Sandra Arnold wrote:
> We are in the process of migrating from Oracle to PostgreSQL.
>  One of the things that we are needing to find out is what to
> use in place of Oracle supplied functionality such as
> "DBMS_OUTPUT" and "UTL_FILE".  We are currently using this
> type of functionality in Stored Procedures and packages.
> What are the options in PostgreSQL for replacing these two
> packages in a stored procedure/function?

RAISE NOTICE has been mentioned.

Apart from the possibility to write file I/O functions in Perl,
there are some functions that are already included in PostgreSQL:
pg_read_file and pg_stat_file.
The contrib module "adminpack" provides pg_file_write,
pg_file_rename, pg_file_unlink.

Together these are enough for simple file system access,
although they don't provide as much as UTL_FILE.

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: PostgreSQL nonstandard use of escape in a string literal
Next
From: el dorado
Date:
Subject: Re[3]: Problems with pg_dump for PG8.4 for WinXP (MinGW build)