Re: Views- Advantages and Disadvantages

Поиск
Список
Период
Сортировка
От woodb@niwa.co.nz
Тема Re: Views- Advantages and Disadvantages
Дата
Msg-id 61792.203.97.249.147.1178697241.squirrel@secure.niwa.co.nz
обсуждение исходный текст
Ответ на Re: Views- Advantages and Disadvantages  ("Andrej Ricnik-Bay" <andrej.groups@gmail.com>)
Список pgsql-general
> On 5/9/07, Ashish Karalkar <ashish.karalkar@info-spectrum.com> wrote:
>
> Hello All,
> Can anybody please point me to Advantages and Disadvantages
> of using view

Hi Ashish,

There are several, but they are generally about implementing a more user
friendly database from a well normalised structure.


You can use views to do any or all of:

 act as a filter on fields or records which can be accessed by given users,

 act as a stored query to avoid writing a commonly used SQL,

 aggregate normalised tables into a single virtual table, so that access
 does not require as complex a join, thus it can hide the complexity of the
 database structure from applications or users.

An example use is to have a view which provides only the current version
of data from a database which stores multiple versions of the data.

Cheers,

  Brent Wood



В списке pgsql-general по дате отправления:

Предыдущее
От: "Austin Winstanley"
Дата:
Сообщение: Re: PostgreSql embedded available?
Следующее
От: Bill Moran
Дата:
Сообщение: Re: Dangers of fsync = off