Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

citus 5.0.1 (new formula) #50392

Closed
wants to merge 3 commits into from
Closed

Conversation

jasonmp85
Copy link

@jasonmp85 jasonmp85 commented Mar 24, 2016

Today Citus Data announced they "unforked" their PostgreSQL-based distributed database and open-sourced the whole project. This means Citus, previously a private fork of the PostgreSQL codebase, can now be added to an existing PostgreSQL install using the standard PostgreSQL CREATE EXTENSION command.

This is analogous to e.g. PostGIS, whose formula was used as an example when writing the formula for Citus. Other PostgreSQL-related formula provided good examples of a test block that actually starts PostgreSQL and verifies installation of the extension.

Code Review Tasks

  • Set pg_config using environment variable
  • Move make and configure args inline to the relevant system calls
  • Bump to latest Citus version (v5.0.1)
  • Investigate installing directly to Cellar
  • Move to new Homebrew repo and close this issue

jasonmp85 added a commit to citusdata/packaging that referenced this pull request Mar 24, 2016
Pending an upstream pull request (Homebrew/legacy-homebrew#50392), I'll keep
this updated for anyone who might have this repo tapped.
@jasonmp85 jasonmp85 force-pushed the add_citus_formula branch 2 times, most recently from fb4dc1a to 63d4436 Compare March 24, 2016 22:34
jasonmp85 added a commit to citusdata/packaging that referenced this pull request Mar 24, 2016
Pending an upstream pull request (Homebrew/legacy-homebrew#50392), I'll keep
this updated for anyone who might have this repo tapped.
depends_on "postgresql"

def install
config_args = %W[--prefix=#{prefix} PG_CONFIG=#{Formula["postgresql"].opt_bin}/pg_config]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For pg_config can it be set as an environment variable instead? Like

ENV["PG_CONFIG"] = Formula["postgresql"].opt_bin}/"pg_config"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can see if that would work.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Today Citus Data announced they "unforked" their PostgreSQL-based dist-
ributed database and open-sourced the whole project. This means Citus,
previously a private fork of the PostgreSQL codebase, can now be added
to an existing PostgreSQL install using the standard PostgreSQL CREATE
EXTENSION command.

This is analogous to e.g. PostGIS, whose formula was used as an example
when writing the formula for Citus. Other PostgreSQL-related formula
provided good examples of a test block that actually starts PostgreSQL
and verifies installation of the extension.
@ghost ghost removed the needs response label Apr 19, 2016
@jasonmp85 jasonmp85 changed the title citus 5.0.0 (new formula) citus 5.0.1 (new formula) Apr 19, 2016
Sets pg_config using an environment variable, removes all configure
arguments, and moves the make arguments inline.
We've released a newer version since the original code review; might as
well update.
@jasonmp85
Copy link
Author

@dunn — I addressed your feedback (checklist up top) and updated the Citus version. The stage directory turns out to just be more straightforward than any alternatives, and is used by all other Homebrew-provided, PGXS-based PostgreSQL extension installs. So I've kept it.

Shall I reopen this under the new repo (I will unless you object)?

@jasonmp85
Copy link
Author

Closing in favor of the new Homebrew/homebrew-core#463.

@jasonmp85 jasonmp85 closed this Apr 19, 2016
apjanke pushed a commit to Homebrew/homebrew-core that referenced this pull request Apr 20, 2016
Last month, Citus Data "unforked" Citus, their PostgreSQL-based dist-
ributed database and open-sourced the whole project. This means Citus,
previously a private fork of the PostgreSQL codebase, can now be added
to an existing PostgreSQL install using the standard PostgreSQL CREATE
EXTENSION command.

This is analogous to e.g. PostGIS, whose formula was used as an example
when writing the formula for Citus. Other PostgreSQL-related formula
provided good examples of a test block that actually starts PostgreSQL
and verifies installation of the extension.

Previously submitted as Homebrew/legacy-homebrew#50392, where it has
already undergone some code review.

Closes #463.

Signed-off-by: Andrew Janke <andrew@apjanke.net>
@jasonmp85 jasonmp85 deleted the add_citus_formula branch April 20, 2016 03:37
@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants