Postgres unique constraint vs index

I had some doubts about this basic but important issue, so I decided to learn by example. Let’s create test table master with two columns, con_id with unique constraint and ind_id indexed by unique index. create table master ( con_id integer unique, ind_id integer ); create unique index master_unique_idx on master (ind_id); Table “public.master” Column … Read more

Select unique or distinct values from a list in UNIX shell script

You might want to look at the uniq and sort applications. ./yourscript.ksh | sort | uniq (FYI, yes, the sort is necessary in this command line, uniq only strips duplicate lines that are immediately after each other) EDIT: Contrary to what has been posted by Aaron Digulla in relation to uniq‘s commandline options: Given the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)