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 8847919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:18:18+00:00 2026-06-14T12:18:18+00:00

I am doing some maintenance work for a postgres database, and one particular table

  • 0

I am doing some maintenance work for a postgres database, and one particular table has two status columns that I want to convert into one bitmask column. This database uses a lot of different stored procedures for data manipulation that are sadly not covered by unit tests.

Is there a way to tell whether this table is being used inside queries by any stored procedures? Well, aside from manually going through each procedure’s body using the \df+ switch inside psql.

  • 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-06-14T12:18:19+00:00Added an answer on June 14, 2026 at 12:18 pm

    Sadly, there isn’t. The body of a plpgsql function is just a string that is saved and executed upon call. When you create a function only superficial syntax checks are run on it.

    Sometimes this is a blessing. Other times, it’s a curse.

    What I do in such a case: dump the schema and search the dump with vim (or grep or the tool of your choice).

    pg_dump $DB -p $PORT -s -f filename.pgsql
    

    If all your functions reside in a particular schema (same word, different meaning!), add: -n $SCHEMA

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

Sidebar

Related Questions

I'm doing some maintenance work on one of our old applications that is written
I'm doing some maintenance work on a database application and I've discovered that, joy
I am doing some maintenance work on an older system that is running PHP
I am doing some maintenance on a database for an application that uses the
We are doing small database maintenance work to earn some money. A new client
I'm doing maintenance work on an existing Rails site and am having some problems
So I'm doing some maintenance on a PHP site that is using $_SESSION variables.
I (new to VB.NET) am doing some code maintenance on a function that sometimes
I'm doing some maintenance work and ran across something like the following: std::string s;
I am doing some maintenance work to a fairly large existing site written in

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.