Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 612103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:51:25+00:00 2026-05-13T17:51:25+00:00

(Postgres 8.3) I’m working with a DB table X 100+ columns wide (which I

  • 0

(Postgres 8.3)

I’m working with a DB table X 100+ columns wide (which I can’t change sadly) many of which get updated constantly and very frequently by normal business process.

I have a requirement to update table Y based on updates to a particular column foo in X updated by unusual business process. However, because of the very high number of updates against X simply applying a trigger which inspects X.foo to decide whether to update Y is considered unacceptable.

Table Y is not the end of the line either, there is a chain of ancestors a few deep, all of which need to bubble up to the root.

The only solutions I can think of are:

  • breaking X into multiple tables (not allowed to)
  • explicitly making the updates to Y (and Z and others) as part of the business logic for updating X but this is going to have a big footprint and leaves a lot of room for somebody getting it wrong or missing it when they have to implement the same in another process. And this is clearly just not good design (which I’m trying to gradually fix where I can).

Does anyone know a way to limit trigger execution by column or any other alternative? Triggers on views? Other voodoo?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:51:25+00:00Added an answer on May 13, 2026 at 5:51 pm

    You might be able to do something with rules, but has has been previously said, triggers should probably be “good enough”. But if you are trying to solve a management problem rather than a technical one, rules might help you. They’ll apply much earlier during execition. Beware of some pitfalls with them typically with sequences and such.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since Postgres can only add columns at the end of tables, I end up
I'm using postgres, and I have a users table which contains users first and
The below Postgres SQL query is returning all records available in the table. Can
In postgres there is a built in function generate_series() which can generate rows with
I have a postgres table with a column (called id) which contains strings. In
I need help in Postgres triggers. I have table with 2 columns: sold boolean;
Using Postgres v. 8.4.2. I have a standard three-table setup for a many-to-many relationship.
I have a Postgres table with about 4.5 million rows. The columns are basically
Postgres 9.0.4 Rails 3.0.7 AR 3.0.7 pg 0.12.2 I have a table with 3
postgres 9.2 supports json columns. what would be best way to extend postgres to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.