select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Extensions / Functions and aggregates

calculate_markup

C function that calculates a price markup percentage by linear interpolation over a numeric price/markup array.

pgext.cloud · Source code · Documentation · Control file

Overview

Packagecalculate_markup
Version1.0
RepositoryUnspecified
Extension typeStandard
Project statusArchived
Requires CREATE EXTENSIONYes
Requires preloadNo
TrustedNo
RelocatableNo
Schemaprice_modifiers
Stars4
Latest commit2018-03-29
Catalogue updated2026-08-30

Related extensions

See also

numpgsqlArray and numerical computing library for PostgreSQL
sum_arrayC function that sums PostgreSQL integer and floating-point arrays into float8.
jsonb_deep_sumRecursively sum numeric fields in JSONB objects
formatbaseC functions to format numbers and parse strings by numeric base.
uintsC extension providing unsigned 16-bit and 32-bit integer types with casts, operators, and numeric support functions.
numhstoreAdds inthstore and floathstore numeric hstore types and helpers
numeric_domainsCustom numeric domains for PostgreSQL
weighted_meanWeighted average aggregate function for PostgreSQL numeric values.