Обсуждение: Change Create Table Grammar

Поиск
Список
Период
Сортировка

Change Create Table Grammar

От
Reza Harasani
Дата:


Hello everybody
I'm a new user in PostgreSQL, I want to add new column in a table where I create a new table automatically ...

In fact, I want to do something that when the user enters the command to create the table without the user realizing it, add a column to the table and there hash of each row is entered to be maintained ...
While, I do not know where to put this command and what should I enter a command. Please note that the information you give me on this ...


Thank you ...

Re: Change Create Table Grammar

От
Thom Brown
Дата:
On 16 February 2015 at 11:12, Reza Harasani <rharasani@gmail.com> wrote:
>
>
> Hello everybody
> I'm a new user in PostgreSQL, I want to add new column in a table where I
> create a new table automatically ...
>
> In fact, I want to do something that when the user enters the command to
> create the table without the user realizing it, add a column to the table
> and there hash of each row is entered to be maintained ...
> While, I do not know where to put this command and what should I enter a
> command. Please note that the information you give me on this ...

Hi Reza,

I'm not clear on what you're proposing.  What problem are you trying to solve?

Is this for checking for data corruption?  If so, note that page-level
checksums are already implemented in PostgreSQL:
http://www.postgresql.org/docs/9.4/static/app-initdb.html#APP-INITDB-DATA-CHECKSUMS

--
Thom