http://qs321.pair.com?node_id=11116567


in reply to Re^3: Create parallel database handles or SQL statements for multi-threaded/process access to Postgres DB using DBI, DBD::Pg and Parallel::ForkManager
in thread Create parallel database handles or SQL statements for multi-threaded/process access to Postgres DB using DBI, DBD::Pg and Parallel::ForkManager

Thanks. I think I understand what that does, but the unique requirement is not on just one field, it is on the whole record. That is, the collection of all field values comprises a UNIQUE combination, and there must not be any other rows with that exact same combination of values.
  • Comment on Re^4: Create parallel database handles or SQL statements for multi-threaded/process access to Postgres DB using DBI, DBD::Pg and Parallel::ForkManager
  • Watch for: Direct replies / Any replies

Replies are listed 'Best First'.
Re^5: Create parallel database handles or SQL statements for multi-threaded/process access to Postgres DB using DBI, DBD::Pg and Parallel::ForkManager
by 1nickt (Canon) on May 08, 2020 at 16:33 UTC

      On that page postgres is not mentioned; in postgresql-SQL, that'd become, I think:

      create unique index all_cols_uk on tablename (every, column, name, in, + the, table) ;

      See: CREATE INDEX in the fine manual