What do g and h in the pressure formula P = P (density) GH represent respectively? Under what circumstances is the formula of pressure used?

What do g and h in the pressure formula P = P (density) GH represent respectively? Under what circumstances is the formula of pressure used?


The pressure formula P = ρ GH is applicable to the cylinder shaped objects with uniform density [only the shape is required, but not the state of matter]
Note that the data acquisition of [H] is the vertical height (depth) from the upper surface down to the designated position!
The constant G is 9.8n/kg in general, and 10N / kg when the problem is indicated