Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> writes:
> there is a problem with restore if oid of user defined function is used as
> a reference ( for index creation, for example ).
How so? The OID isn't used in the pg_dump script, AFAIR.
regards, tom lane