Articles in this section
Category / Section

How to Retrieve Column Names and GUIDs in Bold BI Data Source created with PostgreSQL connection

Published:

In Bold BI, the GUID is used as the column name to resolve the large column name issue, as only 64 characters are allowed in PostgreSQL. This article will guide you on how to get the column names in a table along with their respective GUIDs created by Bold BI. You can get the GUIDs in two ways

  1. From Bold BI application
  2. From your database server

Note: This is applicable only for Extract mode data sources.

Steps to Retrieve Column Names and it’s GUIDs from Bold BI

  1. Navigate to Data Sources Page
  2. Select the data source and select the Edit Connection option.
  3. Select the table which you want to get the GUIDs and click the menu option
    image.png
  4. Click the View Schema.
    image.png
  5. Here you can find the GUIDs of the table columns with its respective names.
    image.png
  6. You can copy the GUID using Ctrl + C by selecting the cell
    image.png

Steps to Retrieve Column Names and it’s GUIDs from PostgreSQL server

  1. Open pgAdmin and connect to your PostgreSQL server.
  2. Select the database which is used as Data store in Bold BI stie.
  3. Execute the following SQL command:
SELECT c.column_name, pgd.description
FROM pg_catalog.pg_statio_all_tables as st
INNER JOIN pg_catalog.pg_description pgd ON (pgd.objoid=st.relid)
INNER JOIN information_schema.columns c ON (pgd.objsubid=c.ordinal_position AND c.table_schema=st.schemaname AND c.table_name=st.relname)
WHERE c.table_name = 'tablename' AND c.table_schema = 'tableschema'

Note: Replace tablename and tableschema with your table name and schema name.

image.png

This command will return the column names and their respective GUIDs in the specified table.

image.png

Additional Resources

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
IJ
Written by Israel Jebaraj Chandirakumar
Updated
Comments (0)
Please  to leave a comment
Access denied
Access denied