add pgsql data patch