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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:42:04+00:00 2026-05-15T10:42:04+00:00

I am from DW/BI background using SAS for many years now I have task

  • 0

I am from DW/BI background using SAS for many years now I have task to find out number of records present in tables on the fly for postgresql tables

i.e. In SAS we have meta tables which has details about tables and no of records, column info etc in system meta tables in a same manner is there any meta table available in postgresql to get no of observation on the fly?

I know we can do select count(*) from table but I don’t want to do that, I want to know is there any built in meta tables in postgresql to get no of records present in table?

Highly appreciated your help.

  • 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-15T10:42:05+00:00Added an answer on May 15, 2026 at 10:42 am

    The pg_class system catalogue contains information about each relation (table, index, view, sequence…). For tables, this includes an estimate of the number of tuples (rows) and disk pages taken up by the table. e.g.:

    SELECT reltuples, relpages FROM pg_class WHERE oid = 'table_name'::regclass
    

    Note that reltuples is of “real” type and so stores about 6 significant figures.

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

Sidebar

Related Questions

I come from a CVS background. I'm currently investigating using SVN for a project.
A bit of background first: I am using base code from a remote SVN
When I was learning Java coming from a background of some 20 years of
Static variable gotcha in php I am from Java background and have switched to
What is the reason that some people from Oracle background are using DECIMAL(31,0) for
If all tables I want to delete from have the column gamer_id can i
I can hookup to AppDomain.CurrentDomain.UnhandledException to log exceptions from background threads, but how do
Coming from a background, I'm familiar with GUI editors that do a poor job
Coming from a background in Django, I often use template inheritance, where multiple templates
I come from a background of MoM. I think I understand ESB conceptually. However,

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.