In MySQL, when I create a composite primary key, say with columns X, Y, Z, then all three columns become indexes automatically. Does the same happen for Postgre
X, Y, Z
No, you get one index for the three-column primary key.