Re: Database Views - Mailing list pgsql-novice

From Tom Lane
Subject Re: Database Views
Date
Msg-id 2124.1225993822@sss.pgh.pa.us
Whole thread Raw
In response to Re: Database Views  (Frank Bax <fbax@sympatico.ca>)
List pgsql-novice
Frank Bax <fbax@sympatico.ca> writes:
> create or replace view vehicle as
> select 'car' as type,manufacturer,vin,color from car
> union
> select 'truck' as type,manufacturer,vin,color from truck
> union
> select 'suv' as type,manufacturer,vin,color from suv
> ;

UNION ALL would be better, since it would stop the system from uselessly
trying to eliminate duplicate rows ...

            regards, tom lane

pgsql-novice by date:

Previous
From: Frank Bax
Date:
Subject: Re: Database Views
Next
From: "Leví Teodoro da Silva"
Date:
Subject: Re: [DUMP] Make a dump with special characters