TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Using PostgreSQL Arrays The Right Way

80 点作者 drob大约 11 年前

4 条评论

adamors大约 11 年前
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 未加载
dsugarman大约 11 年前
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_ss大约 11 年前
Why use an array instead of a separate table? Are you trying to avoid a JOIN?
评论 #7302254 未加载
thyrsus大约 11 年前
Does anyone know offhand whether fixed length values, e.g., bigint, have this problem?
评论 #7307121 未加载