With PostgreSQL call,
CREATE TABLE condor_xrootd AS
SELECT * FROM condor INNER JOIN xrootd_ext
ON (
xrootd_ext.CRAB_Id = condor.CRAB_Id AND
REPLACE(condor.CRAB_ReqName, '_', ':') = xrootd_ext.CRAB_ReqName
);
I get the error,
$ psql condor -f ./sql/inner_join.sql
psql:./sql/inner_join.sql:6: ERROR: column "crab_id" specified more than once
Which is understandable because each table has a Crab_Id column. I would like to be able to do my inner join without having to specify the columns because I have around 400 columns in the two tables combined.
Please let me know if I can somehow get rid of this error without listing columns individually.
EDIT:
I forgot to mention that speed and stability is crucial here as my join might take several days.