I'm pretty new to postgres. Essentially what I'm looking to do is have a table, where each entry contains basically a struct (in the C-parlance) or an object.
I believe this is called a composite type? Anyway it would essentially be like this (pseudocode):
user_name = {
my_int_value : 100,
my_string_value : "some string",
my_array : (1, 2, 3, 4, 5, 6)
}
I'm using pgAdmin to muck around.
Problem is, when I add a table and then go to add a column, I don't see any data type that would seem to represent such a data structure. I thought there was a composite type that would essentially let me do this.
My primary goal is to be able to do this via pgAdmin, but if that's not possible at all, I'm open to other ideas for the easiest way to go about doing it.