Hacker News new | past | comments | ask | show | jobs | submit login

Foreign keys as arrays is just wrong.

However, there are many cases where arrays are actually extremely useful, including the ability to be a useful intermediary type for stored procedure interfaces. For example, you can aggregate arrays of rows, and pass those into another stored procedure for processing, or you can use them for pulling info to/from your application. We do this extensively in PostgreSQL in part because DBD::Pg has excellent array support.

These are actually remarkably useful in PostgreSQL. Of course like any advanced feature it can be abused.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: