C 语言函数,根据价格与加价率数组通过线性插值计算加价百分比。
pgext.cloud · 源码仓库 · 官方文档 · Control 文件
| 扩展包 | calculate_markup |
|---|---|
| 版本 | 1.0 |
| 仓库来源 | 未标记 |
| 扩展形态 | 标准扩展 |
| 上游状态 | 已归档 |
| 需要 CREATE EXTENSION | 是 |
| 需要预加载 | 否 |
| 可信扩展 | 否 |
| 可迁移 | 否 |
| Schema | price_modifiers |
| 星标 | 4 |
| 最近提交 | 2018-03-29 |
| 目录更新 | 2026-08-30 |
| numpgsql | numpgsql:面向 PostgreSQL 数组的数值与科学计算函数库,提供数学、随机数、切片和排序函数。 |
| sum_array | 用 C 将 PostgreSQL 整数或浮点数组求和并返回 float8。 |
| jsonb_deep_sum | 递归相加 JSONB 对象中的数值,并提供 jsonb_deep_sum 聚合函数。 |
| formatbase | formatbase:函数工具类 PostgreSQL 扩展;上游说明为“C functions to format numbers and parse strings by numeric base”。 |
| uints | 提供无符号 16 位与 32 位整数类型及类型转换、运算符和数值支持函数的 C 扩展。 |
| numhstore | numhstore:为 hstore 增加 inthstore 与 floathstore 数值类型及辅助函数。 |
| numeric_domains | numeric_domains:为 PostgreSQL 提供常用数值范围域类型。 |
| weighted_mean | weighted_mean:提供按权重计算平均值的 PostgreSQL 聚合函数。 |