I've been handed a project from a coworker with zero knowledge of Postgres. I'm trying to integrate a pg_restore
into a Jenkins Pipeline job and it returns one error that I have been told is fine to overlook. However, this error obviously causes the Jenkins job to fail, which is unideal.
Is there a way to mitigate or stifle the output of this one error, without stopping any other (more serious) errors from being recorded?
The command I am running (with all personal data stripped) is
PGPASSWORD="password" pg_restore -h path -U user -d database filename -F c -c
and it returns this error (but executes successfully)
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 8290; 0 0 COMMENT EXTENSION plpgsql
pg_restore: [archiver (db)] could not execute query: ERROR: must be owner of extension plpgsql
Command was: COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
Again, I have less than zero Postgres experience. Is there an easy way to ignore this one error, or is this just something I need to live with?