Database Research & Development

  • Home
  • NoSQL
    • NoSQL
    • Cassandra
  • Databases
    • Database Theory
    • Database Designing
    • SQL Server Coding Standards
    • SQL Server
    • PostgreSQL
    • MySQL
    • Greenplum
    • Linux
  • Interviews
    • SQL Server Interviews
    • MySQL Interviews
    • SQL Puzzles
  • DBA Scripts
    • SQL Server DBA Scripts
    • PostgreSQL DBA Scripts
    • MySQL DBA Scripts
    • Greenplum DBA Scripts
  • Home
  • Blog Archives !
  • (: Laugh@dbrnd :)
  • Contact Me !
sqlserverinterviews
Home 2016 March PostgreSQL: ALTER TABLE to change Fillfactor Value

PostgreSQL: ALTER TABLE to change Fillfactor Value

This article is half-done without your Comment! *** Please share your thoughts via Comment ***

This is one of the important post related to change or set the Fillfactor value for the existing table of the PostgreSQL.

One of our tables is very busy with a large number of updates and access by multiple clients.

I also estimated the row size of that table which is not that much bigger, so I decided to change the Fillfactor of that table.

I have recently published an article about the importance of Fillfactor in PostgreSQL.

1
2
ALTER TABLE table_name SET ( fillfactor = 50);
VACUUM FULL table_name;

Please Note:

After changing the value of Fillfactor, you should execute VACUUM FULL on that particular table.
After changing the value of Fillfactor, it works only for new tuples.

Mar 30, 2016Anvesh Patel
PostgreSQL: How to measure the size of a Table Row and Data Page?PostgreSQL: Script to check a Fillfactor value for Tables and Indexes
Comments: 4
  1. Eric
    April 26, 2016 at 6:50 am

    I was just searching for this info for some time. After six hours of continuous Googleing, finally I got it in your web site. I wonder what is the lack of Google strategy that don’t rank this type of informative sites in top of the list. Normally the top websites are full of garbage.

  2. ph
    April 29, 2016 at 2:30 am

    Ok, after that – how can I reset it to default value? Not just set to 100, but set to empty value.

    • ph
      April 29, 2016 at 2:38 am

      Ok. I’ve found!

      ALTER TABLE shops.payments_out RESET(
      FILLFACTOR
      );

      exactly in CAPS

      • Anvesh Patel
        Anvesh Patel
        April 29, 2016 at 6:41 pm

        Thanks to add this !

Anvesh Patel
Anvesh Patel

Database Engineer

March 30, 2016 MySQLalter, Anvesh Patel, database, database research and development, dbrnd, Fillfactor, plpgsql, Postgres Query, postgresql, PostgreSQL Administrator, PostgreSQL Error, PostgreSQL Programming, PostgreSQL Tips and Tricks
About Me!

I'm Anvesh Patel, a Database Engineer certified by Oracle and IBM. I'm working as a Database Architect, Database Optimizer, Database Administrator, Database Developer. Providing the best articles and solutions for different problems in the best manner through my blogs is my passion. I have more than six years of experience with various RDBMS products like MSSQL Server, PostgreSQL, MySQL, Greenplum and currently learning and doing research on BIGData and NoSQL technology. -- Hyderabad, India.

About DBRND !

dbrnd

This is a personal blog (www.dbrnd.com).

Any views or opinions represented in this blog are personal and belong solely to the blog owner and do not represent those of people, institutions or organizations that the owner may or may not be associated with in professional or personal capacity, unless explicitly stated.

Feel free to challenge me, disagree with me, or tell me I’m completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or anonymous comments) - so keep it polite.

The content of this website is protected by copyright. No portion of this website may be copied or replicated in any form without the written consent of the website owner.

Recent Comments !
  • Anvesh Patel { Sure will do... } – May 27, 12:43 PM
  • Anvesh Patel { Great... } – May 27, 12:41 PM
  • Anvesh Patel { Great... } – May 27, 12:39 PM
  • Anvesh Patel { Great... } – May 27, 12:36 PM
  • Anvesh Patel { Great... } – May 27, 12:28 PM
  • Anvesh Patel { Great... } – May 27, 12:27 PM
  • Anvesh Patel { Great... } – May 27, 12:16 PM
  • Older »
Follow Me !
  • facebook
  • linkedin
  • twitter
  • youtube
  • google
  • flickr
© 2015 – 2019 All rights reserved. Database Research & Development (dbrnd.com)
Posting....