I have a table with one column in a tablespace in PostgreSQL. This resulted in 3 data files as seen in the image below.
To test where the data stores, I added one row with only one value in my table, and the datafile '49565' went from 0kb to 8kb. I know that data is stored in pages of 8kb each which are inside the data files.
What I need to know is how many rows can fit in the '49565' data file. How do I get this value?
Second question. When I check on the tablespace I created, it shows two objects: the index and the table. Since the index row mentions the number '49565' I thought that this is the data file (1st image) for the index. So, why does the row I added in the table stored in that data file?