Giter VIP home page Giter VIP logo

Comments (3)

onurctirtir avatar onurctirtir commented on May 23, 2024

This was something we were anticipating that there could be a need for this, and we wanted to wait until hearing an explicit user ask about that, thank you for opening this issue!

To better understand your need, would it be enough to replicate only table level DDLs from template schemas to corresponding tables in actual schemas (ALTER TABLE), or would you need any other kind of DDLs to be replicated, such as CREATE INDEX, or any other type (VACUUM, TRUNCATE, something else)?

from citus.

onurctirtir avatar onurctirtir commented on May 23, 2024

I could imagine that we add a GUC that specifies which template schema is requested to be used when creating a new schema, as in:

SET citus.effective_template_schema_name = "template_schema_1";

Then the CREATE SCHEMA commands that follows this statement directly inherit table structures defined in template_schema_1 as well as following table structure changes (ALTER TABLE .., CREATE INDEX) that happens in template_schema_1. This probably also requires disallowing individual schema changes in the schemas that inherit their structure from a template one?

Is my understanding correct? DDLs other than ALTER TABLE / CREATE INDEX are needed?

from citus.

double-dubs avatar double-dubs commented on May 23, 2024

I am not familiar with all the operations you currently support with row based, but it would make sense to have this function in a similar way for consistency sake. I would think at a minimum you would need:

Table: create, alter, drop
View: create, drop
Function: create, replace, drop
Index: create, drop

from citus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.