Based on this blogpost.
Install with Homebrew:
$ brew install postgresql
|* Copyright 2020-2021 the original author or authors.|
|* Licensed under the Apache License, Version 2.0 (the "License");|
|* you may not use this file except in compliance with the License.|
|* You may obtain a copy of the License at|
|* Unless required by applicable law or agreed to in writing, software|