Check Tablespace and Filespace information in GreenplumDB

Below Post, I am sharing a script to check the Tablespace and Filespace information in GreenplumDB. In Greenplum Database, tablespaces and filespaces are both used for managing storage, but they serve different purposes.

Tablespace:-
Tablespaces In Greenplum are logical storage and used for organizing database objects, example as tables and indexes. Every tablespace is associated with a physical location on the file system where data files are stored.
Greenplum allows us to create tablespaces to manage storage more efficiently,
such as placing different database objects on separate storage devices for performance or administrative purposes.To check information about tablespaces in Greenplum, we can query the pg_tablespace:-

SELECT * FROM pg_tablespace;

Filespaces:

Greenplum Filespaces are logical entities that group together the physical storage locations (directories) where data files are stored. Filespaces are primarily used in the context of external tables, which allow Greenplum to access data stored outside of the database, such as in Hadoop
Distributed File System (HDFS) or on a network file system (NFS).

To get the information about filespaces in Greenplum, we can run the below query:-

SELECT * FROM pg_filespace;


Below query will help us to retrieve information about tablespaces and filespace in Greenplum Database. In Greenplum Database, tablespaces and filespaces are used to manage the storage of data across the segments
of the Greenplum cluster.

SELECT spcname as tblspc ,fsname as filespc ,fsedbid as seg_dbid,fselocation as datadir FROM pg_tablespace pgts ,pg_filespace pgfs ,pg_filespace_entry pgfse WHERE pgts.spcfsoid=pgfse.fsefsoid AND pgfse.fsefsoid=pgfs.oid ORDER BY tblspc, seg_dbid;

1 thought on “Check Tablespace and Filespace information in GreenplumDB”

  1. My name is Ahmet. I’m a bank staff in a Turkish bank. I’ve been looking for someone who has the same nationality as you. A citizen of your country died in the recent earthquake in Turkey, he had in our bank fixed deposit of $11.5 million.

    My Bank management is yet to know of his death. If my bank executive finds out about his death ,They would use the funds for themselves and get richer and I would like to prevent that from happening only if I get your cooperation, I knew about it because I was his account manager. Last week my bank management held a meeting for the purpose of a bank audit to note the dormant and abandoned deposit accounts. I know this will happen and that’s why I’m looking for a solution to deal with this situation because if my bank discovers his death, they will divert the funds to the board of directors. I don’t want that to happen.

    I request your cooperation to introduce you as the kin/heir of the account as you are of the same nationality as him. There is no risk; the transaction is carried out under a legal agreement that protects you from infringement. I suggest we split the funds, 60/40 and 40 for me. I need this fund for my daughter’s surgery so keep this info confidential. email me so i can provide you with more information. ahmetaksoytrt@outlook.com

    Reply

Leave a Reply to Earl Atkin Cancel reply