# Resuming work on Extensions, first little step

DevFeed: [Resuming work on Extensions, first little step](<https://devfeed.tech/articles/resuming-work-on-extensions-first-little-step-34399.md>)

Original publisher: [Read original article](<https://tapoueh.org/blog/2010/10/resuming-work-on-extensions-first-little-step/>)

Author: Dimitri Fontaine PostgreSQL Major Contributor; Author

Published: 2010-10-07T15:15:00Z

Content type: article

Language: en

Sources: [Dimitri Fontaine](<https://devfeed.tech/sources/dimitri-fontaine.md>)

Topics: [Extension](<https://devfeed.tech/topics/extension.md>), [Git](<https://devfeed.tech/topics/git.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [function](<https://devfeed.tech/topics/function.md>)

Tags: [extensions](<https://devfeed.tech/tags/extensions.md>), [git](<https://devfeed.tech/tags/git.md>), [patches](<https://devfeed.tech/tags/patches.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [project](<https://devfeed.tech/tags/project.md>), [repository](<https://devfeed.tech/tags/repository.md>)

## AI overview

The author describes resuming work on PostgreSQL extensions by synchronizing a local extension repository with the updated master repository. They preserve the extension branch's work as a patch, reset local branches against the official repository, adapt the patch to source changes, and publish the result.

## Source excerpt

Yeah I'm back on working on my part of the extension thing in PostgreSQL. First step is a little one, but as it has public consequences, I figured I'd talk about it already. I've just refreshed my git repository to follow the new master one, and you can see that here http://git.postgresql.org/gitweb?p=postgresql-extension.git;a=commitdiff;h=9a88e9de246218e93c04b6b97e1ef61d97925430. It's been easier than I feared, mainly: $ git --no-pager diff master..extension $ git --no-pager format-patch master..extension $ cp 0001-First-stab-at-writing-pg_execute_from_file-function.patch .. $ git checkout master $ git pull -f pgmaster $ git reset --hard pgmaster/master $ git checkout extension $ git reset --hard master $ git am -s ../0001-First-stab-at-writing-pg_execute_from_file-function.edit.patch $ git status $ git log --short | head $ git log -n2 --oneline $ git push -f So that's still more steps that one want to call dead simple, but still. The format-patch command is to save my work away (all patches that are in the extension branch but not in the master -- well that was only one of them here). Then, as the master repository URL didn't change, I can simply pull the changes in. Of course I had a nice message warning: no common commits.