Egregoros

Signal feed

Timeline

Post

Remote status

Context

7
@feld anyway the argument against stored procedures was, one, you're probably doing it wrong and two, now you're locked into one vendor's system for life. that said I have implemented them before when I needed both the querying and custom aggregation
@ignaloidas @feld I have presided over at least ten different projects to migrate a company away from Oracle to PostgreSQL. In a previous job I left in 2010, almost everything was written using PL/SQL in Oracle. They are still using Oracle because it was impossible to rewrite them.

I am very against using stored procedures unless you can can bring a strong case for why your usage doesn't get us swamped for life on one platform.

@sun@shitposter.world @feld@friedcheese.us ok, I understand it with oracle because of it's toxic licensing

But like, I've rewritten a whole bunch of stored procedures - e.g. from postgres to mssql and then back to postgres after some changes while it lived in mssql. Was fine.

And yes, if you put all of it in stored procedures, you're gonna have a bad time migrating (guess why oracle wants you to use them so much), but as I said, you should have either small ones for consistency, or large ones for large transformations/analytics. The first case is easy to rewrite because small, the second case is a pain either way because the alternative is just having all of the sql in some script or whatever and you're gonna have to rewrite it either way.

Replies

2