Hi
Getting error while restoring postgres database
the view Invoice_Candidate_V giving error at line where ever it add or subtract day
Which function did not restored properly ?
AND ((TRUNC(o.DateOrdered) <= firstOf(getdate(),'MM')+si.InvoiceDayCutoff-1
AND TRUNC(getdate()) >= firstOf(o.DateOrdered,'MM')+si.InvoiceDay-1)
OR (TRUNC(o.DateOrdered) <= firstOf(getdate(),'MM')+si.InvoiceDayCutoff+14
AND TRUNC(getdate()) >= firstOf(o.DateOrdered,'MM')+si.InvoiceDay+14))
pg_restore: creating FUNCTION "adempiere.trunc(timestamp with time zone, character varying)"
pg_restore: creating FUNCTION "adempiere.update_sequences()"
pg_restore: creating FUNCTION "public.fnnumbertowords(bigint)"
pg_restore: creating OPERATOR "adempiere.+"
pg_restore: WARNING: operator attribute "function" not recognized
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 6026; 2617 161962 OPERATOR + adempiere
pg_restore: [archiver (db)] could not execute query: ERROR: operator procedure must be specified
Command was: CREATE OPERATOR adempiere.+ (
FUNCTION = adempiere.adddays,
LEFTARG = timestamp with time zone,
RIGHTARG = numer...
pg_restore: [archiver (db)] could not execute query: ERROR: operator does not exist: timestamp with time zone adempiere.+ numeric
Command was: ALTER OPERATOR adempiere.+ (timestamp with time zone, numeric) OWNER TO adempiere;
pg_restore: creating OPERATOR "adempiere.+"
pg_restore: WARNING: operator attribute "function" not recognized
pg_restore: [archiver (db)] Error from TOC entry 6028; 2617 161964 OPERATOR + adempiere
pg_restore: [archiver (db)] could not execute query: ERROR: operator procedure must be specified
Command was: CREATE OPERATOR adempiere.+ (
FUNCTION = adempiere.adddays,
LEFTARG = interval,
RIGHTARG = numeric,
COMMUTAT...
pg_restore: [archiver (db)] could not execute query: ERROR: operator does not exist: interval adempiere.+ numeric
Command was: ALTER OPERATOR adempiere.+ (interval, numeric) OWNER TO adempiere;
pg_restore: creating OPERATOR "adempiere.-"
pg_restore: WARNING: operator attribute "function" not recognized
pg_restore: [archiver (db)] Error from TOC entry 6030; 2617 161966 OPERATOR - adempiere
pg_restore: [archiver (db)] could not execute query: ERROR: operator procedure must be specified
Command was: CREATE OPERATOR adempiere.- (
FUNCTION = adempiere.subtractdays,
LEFTARG = timestamp with time zone,
RIGHTARG = ...
pg_restore: [archiver (db)] could not execute query: ERROR: operator does not exist: timestamp with time zone adempiere.- numeric
Command was: ALTER OPERATOR adempiere.- (timestamp with time zone, numeric) OWNER TO adempiere;
pg_restore: creating OPERATOR "adempiere.-"
pg_restore: WARNING: operator attribute "function" not recognized
pg_restore: [archiver (db)] Error from TOC entry 6031; 2617 161967 OPERATOR - adempiere
pg_restore: [archiver (db)] could not execute query: ERROR: operator procedure must be specified
Command was: CREATE OPERATOR adempiere.- (
FUNCTION = adempiere.subtractdays,
LEFTARG = interval,
RIGHTARG = numeric,
COM...
pg_restore: [archiver (db)] could not execute query: ERROR: operator does not exist: interval adempiere.- numeric
Command was: ALTER OPERATOR adempiere.- (interval, numeric) OWNER TO adempiere;
pg_restore: creating TABLE "adempiere.a_asset"
pg_restore: creating TABLE "adempiere.a_asset_acct"
pg_restore: creating TABLE "adempiere.a_asset_addition"
pg_restore: creating TABLE "adempiere.c_order"
pg_restore: creating TABLE "adempiere.c_orderline"
pg_restore: creating VIEW "adempiere.c_invoice_candidate_v"
pg_restore: [archiver (db)] Error from TOC entry 582; 1259 167477 VIEW c_invoice_candidate_v adempiere
pg_restore: [archiver (db)] could not execute query: ERROR: operator does not exist: timestamp with time zone adempiere.+ numeric
LINE 18: ...M'::character varying))::timestamp with time zone OPERATOR(a...
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
Command was: CREATE VIEW adempiere.c_invoice_candidate_v AS
SELECT o.ad_client_id,
o.ad_org_id,
o.c_bpartner_id,
o.c_order_i...
pg_restore: [archiver (db)] could not execute query: ERROR: relation "adempiere.c_invoice_candidate_v" does not exist
Command was: ALTER TABLE adempiere.c_invoice_candidate_v OWNER TO adempiere;
pg_restore: creating VIEW "adempiere.c_invoice_header_v"
pg_restore: creating VIEW "adempiere.c_invoice_header_vt"
pg_restore: creating TABLE "adempiere.c_invoiceline"