I'm new in PostgreSQL and a little bit confused.
I want to automatically generate unique transaction id with predefined code and attach to it inside the table.
like :
TRX201909260001
The pattern should be: 'TRX'
+ (yyyy/mm/dd) + (random number)
I've found this question that shows me how to do it like I want, but it is about SQL Server.