Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deparse coldeflist. #64

Merged
merged 1 commit into from
May 15, 2017
Merged

Deparse coldeflist. #64

merged 1 commit into from
May 15, 2017

Conversation

jcsjcs
Copy link
Contributor

@jcsjcs jcsjcs commented May 14, 2017

Deparse coldeflist.

(Includes a fix to deparse_typename so it returns varchar[] when required instead of just varchar.)

An example of coldeflist column definitions can be seen in the last line of this crosstab query:

SELECT * FROM crosstab(
'SELECT "department", "role", COUNT("id") FROM "users" GROUP BY "department", "role" ORDER BY "department", "role"',
'VALUES (''admin''::text), (''ordinary''::text)')
AS (department varchar, admin int, ordinary int)

@lfittl
Copy link
Member

lfittl commented May 15, 2017

Nice - thanks for the contribution!

@lfittl lfittl merged commit d72bb78 into pganalyze:master May 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants