I'm trying to migrate one of my oracle databases to Postgres 9.5. I`m currently trying to create the next function:
-- Generated by Ora2Pg, the Oracle database Schema converter, version 18.1
-- Copyright 2000-2017 Gilles DAROLD. All rights reserved.
-- DATASOURCE: dbi:Oracle:oralab
SET client_encoding TO 'UTF8';
SET search_path = repdev,public,oracle,utl_file,extensions;
show search_path;
CREATE OR REPLACE FUNCTION Bl_Create_Flat_File_Pg.set_charset (file_id
utl_file.file_type, p_title text DEFAULT NULL) RETURNS VOID AS $body$
BEGIN
.....
End;
--
$body$
LANGUAGE PLPGSQL
SECURITY DEFINER
STABLE;
ALTER FUNCTION Bl_Create_Flat_File_Pg.set_charset (file_id
utl_file.file_type, p_title text DEFAULT NOT NULL ) OWNER TO repdev;
but when I`m running it in psql iget the next error:
ERROR: syntax error at or near "DEFAULT" LINE 1: ...charset (file_id utl_file.file_type, p_title text DEFAULT NU...