I'm working on multi-tenant system in which I need to work on different tenats. in some cases I need to create new schema which contains some tables and default data. for that I just want to duplicate or copy public schema with diff. name Is there any way to duplicate or copy it. I did work around on this problem but I want a solution to copy schema not to create schema and regenrate table and data
1
There are 1 best solutions below
Related Questions in POSTGRESQL-9.6
- Multiply all values of a json object with postgres 9.6
- Postgres 9.6 Find distinct time periods and count of records within a certain time range
- Is there a function to return the first null value of a row?
- PostgreSQL 9.6 nested INSERT/RETURN statements have unacceptably poor CTE performance
- Query to find unique time periods from list of time ranges
- Postgres - Modify JSON to Retain Only Keys Where Values Include a Matching String
- After allocating the enough resource in the memory parameter in PostgreSQL why SWAP memory is fully utilized.?
- Version of package postgresq-server-dev removed from Debian repository when archived
- Spring boot Flyway Gradle dependency version auto inclusion
- Integer array column having more than one value
- Error : set returning functions are not allowed in CASE, in Postgresql 10
- Merge rows if they contain a duplicate value in one of many columns
- Create a uniqueness index on multiple columns depending on the value to be added postgres 9.6
- Does deleting a lot of a rows in a transaction hurt with postgresql?
- Querying over PostgreSQL JSONB column
Related Questions in LUMEN-5.5
- Lumen: In routes.php line 17: Call to undefined method Laravel\Lumen\Application::post(), after upgrade to 5.5.*
- Lumen 5.6 php artisan migrate --env=testing not working
- Lumen: Where to define controller reponse helper method
- Duplicate postgres schema
- Social Login with Angular 5 and Lumen 5.6
- Laravel Lumen Migrations fail if there are no migrations present
- HTTP Request from Angular 5 to Lumen Rest API
- Lumen 5.6 Error handling (throws exception twice)
- Lumen 5.5.2 URL forceSchema not working at all
- Lumen 5.5 all requests are going through auth
- How to use multiple DB connections using .env in Lumen 5.5..?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Take a back up of the schema you want along with the data In a plain text SQL file using pgadmin. And then create new schema and execute the SQL file under the new schema.