Jennyfer Sanchez <jjsanchez@mail.usf.edu> writes:
> I was able to install postgresql but I got an error after putting the
> command /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data/ to initialize
> the database. The error that I am getting is
> FATAL: wrong number of index expressions
> STATEMENT: CREATE TRIGGER pg_sync_pg_database AFTER INSERT OR
> UPDATE OR DELETE ON
> pg_database FOR EACH STATEMENT EXECUTE PROCEDURE flatfile_update_trigger();
That looks suspiciously like this thread:
https://www.postgresql.org/message-id/flat/20150120161817.GO1663%40alvh.no-ip.org#20150120161817.GO1663@alvh.no-ip.org
which would suggest that you're trying to build some fairly old PG version
with some fairly new C compiler. Whether that's actually the case, well,
you didn't give enough info to tell.
regards, tom lane