"Marcos Alonso, Javier" <jmalonso@indra.es> writes:
> java.sql.SQLException: NOTICE: Cannot rename init file /usr/local/pgsql/da=
> ta/base/1166555/pg_internal.init.1380 to /usr/local/pgsql/data/base/1166555=
> /pg_internal.init: Permission denied
> Continuing anyway, but there's something wrong.
Something wrong with the permissions on the directory
/usr/local/pgsql/data/base/1166555/, perhaps? That directory,
along with everything else under /usr/local/pgsql/data, *must* be
owned and writable by the user that the postgres server is running as.
regards, tom lane