I'm new to SQL so please forgive if this question is dumb.
I'm googling "How to create a type alias in postgresql?" and the answers all seem to get into types as tables, and stuff that is overkill for what I want to do.
I need PostgreSQL's version of this:
#define t_my_int int
The motivation for doing this is that a lot of my tables have the same field name, say, my_field, and they are all of type VARCHAR(X), where X is a random number. I want to make all my my_field's the same. All VARCHAR(100), for example.
How do I do that?