Quantcast
Channel: Apply postgreSQL trigger to existing rows in database - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by jjanes for Apply postgreSQL trigger to existing rows in database

Since the table is small, just do a dummy update of the entire table: update pg_rocks_post set title=title; And let the trigger do its thing.

View Article


Answer by Fast Engy for Apply postgreSQL trigger to existing rows in database

Normally triggers would run on a table on BEFORE or AFTER an insert, update or delete of a row. There are several options that allow you to decide on when to call the trigger. Updating the row...

View Article

Apply postgreSQL trigger to existing rows in database

I am using PostgeSQL 9.2.2. My database schema is pg_rocks_post title | character varying(1024) | not null body | text | not null body_title_tsv | tsvector | body_title_titleupweight_tsv | tsvector |...

View Article
Browsing latest articles
Browse All 3 View Live