function PLUGIN:EnvKeys(ctx)
local sdkInfo = ctx.sdkInfo["postgres"]
local installDir = sdkInfo.path
local envs = {
{
key = "PATH",
value = installDir .. "/bin",
},
{
key = "PGDATA",
value = installDir .. "/data",
},
}
if RUNTIME.osType == "linux" then
table.insert(envs, {
key = "LD_LIBRARY_PATH",
value = installDir .. "/lib",
})
end
return envs
end