TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Using PostgreSQL Arrays The Right Way

80 pointsby drobabout 11 years ago

4 comments

adamorsabout 11 years ago
While this is really cool, can anyone tell me if it has become any easier to write stored procedures&#x2F;functions?<p>Last time I tried writing stored procedures I went into a deep depression from the lack of a proper IDE&#x2F;editor&#x2F;debugger&#x2F;tester&#x2F;anything.<p>Is there any process out there besides time consuming trial and error? Or does everyone who writes these knows them by heart and I should just stick to programming languages?
评论 #7303161 未加载
评论 #7302115 未加载
评论 #7302009 未加载
评论 #7301970 未加载
评论 #7302063 未加载
dsugarmanabout 11 years ago
we heavily rely on postgres as well, in the past we have tried to do the entire backend on postgres as we believe it could be the best solution, but we have had a terrifically hard time of maintaining stored procs, etc. We still use them, but a lot less than we probably would and wound up building an ORM and moving most logic to PHP.<p>I would be really interested in how you maintain your database code if you are up for another write up or have some time to chat.
评论 #7302120 未加载
评论 #7303008 未加载
评论 #7301997 未加载
waffle_ssabout 11 years ago
Why use an array instead of a separate table? Are you trying to avoid a JOIN?
评论 #7302254 未加载
thyrsusabout 11 years ago
Does anyone know offhand whether fixed length values, e.g., bigint, have this problem?
评论 #7307121 未加载